Bug#498212: a fix

tim richardson tim at tim-richardson.net
Thu Sep 18 13:46:30 UTC 2008


I don't know how to make patch files.

But the crash can be stopped by editing
file-chooser/gtkfilesystemgnomevfs.c

and modifying the code around line 964 so the it tests for NULL 
because the crash is in the strcmp() call



/* Returns whether the MIME type of a vfs_info is
"application/x-desktop" */
static gboolean
is_desktop_file (GnomeVFSFileInfo *vfs_info)
{
        if (gnome_vfs_file_info_get_mime_type (vfs_info) == NULL)
          return (1 == 0);

  return ((vfs_info->valid_fields &
GNOME_VFS_FILE_INFO_FIELDS_MIME_TYPE) != 0
          && strcmp (gnome_vfs_file_info_get_mime_type (vfs_info),
"application/x-desktop") == 0);
}








More information about the pkg-gnome-maintainers mailing list