aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-09-19 08:35:58 +0200
committerThomas White <taw@bitwiz.org.uk>2011-09-19 08:35:58 +0200
commite26dcd2049ae065f5a821f087abd736ba553dcad (patch)
tree6667215acab7a645ac85d4eda02e3300cbcc6d91 /src/mainwindow.c
parent33fa59c9fe625bede83f83d39d5eda2833ef76b4 (diff)
"Fix" compiler warning
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index 2c9ca2d..b308cfe 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -865,11 +865,13 @@ static void dnd_receive(GtkWidget *widget, GdkDragContext *drag_context,
gchar *filename;
GError *error = NULL;
GdkPixbufFormat *f;
+ const gchar *uri;
p->have_drag_data = 1;
p->drag_preview_pending = 0;
+ uri = (gchar *)seldata->data;
- filename = g_filename_from_uri(seldata->data, NULL, &error);
+ filename = g_filename_from_uri(uri, NULL, &error);
if ( filename == NULL ) {
/* This doesn't even look like a sensible URI.