diff options
Diffstat (limited to 'widgets/misc/e-image-chooser.c')
-rw-r--r-- | widgets/misc/e-image-chooser.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/widgets/misc/e-image-chooser.c b/widgets/misc/e-image-chooser.c index 5212027bac..319c2b55ac 100644 --- a/widgets/misc/e-image-chooser.c +++ b/widgets/misc/e-image-chooser.c @@ -416,7 +416,7 @@ image_drag_data_received_cb (GtkWidget *widget, char *nl = strstr ((char *)selection_data->data, "\r\n"); char *buf = NULL; /* Why can't we change the info parameter to a GnomeVFSFileInfo and use that? */ - GnomeVFSFileInfo info; + GnomeVFSFileInfo file_info; if (nl) uri = g_strndup ((char *)selection_data->data, nl - (char*)selection_data->data); @@ -425,13 +425,13 @@ image_drag_data_received_cb (GtkWidget *widget, result = gnome_vfs_open (&handle, uri, GNOME_VFS_OPEN_READ); if (result == GNOME_VFS_OK) { - result = gnome_vfs_get_file_info_from_handle (handle, &info, GNOME_VFS_FILE_INFO_DEFAULT); + result = gnome_vfs_get_file_info_from_handle (handle, &file_info, GNOME_VFS_FILE_INFO_DEFAULT); if (result == GNOME_VFS_OK) { GnomeVFSFileSize num_read; - buf = g_malloc (info.size); + buf = g_malloc (file_info.size); - if ((result = gnome_vfs_read (handle, buf, info.size, &num_read)) == GNOME_VFS_OK) { + if ((result = gnome_vfs_read (handle, buf, file_info.size, &num_read)) == GNOME_VFS_OK) { if (set_image_from_data (chooser, buf, num_read)) { handled = TRUE; } else { |