Commit fff1fc06 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

Avoid crashing if gvfs backend gives NULL as name for a new file.

2008-02-06  Alexander Larsson  <alexl@redhat.com>

        * libnautilus-private/nautilus-directory-async.c:
        (directory_load_one):
	Avoid crashing if gvfs backend gives NULL as name for
	a new file. (#511601)


svn path=/trunk/; revision=13699
parent fb86154e
2008-02-06 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-directory-async.c:
(directory_load_one):
Avoid crashing if gvfs backend gives NULL as name for
a new file. (#511601)
2008-02-06 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-directory-async.c:
......
......@@ -957,6 +957,16 @@ directory_load_one (NautilusDirectory *directory,
return;
}
if (g_file_info_get_name (info) == NULL) {
char *uri;
uri = nautilus_directory_get_uri (directory);
g_warning ("Got GFileInfo with NULL name in %s, ignoring. This shouldn't happen unless the gvfs backend is broken.\n", uri);
g_free (uri);
return;
}
/* Arrange for the "loading" part of the work. */
g_object_ref (info);
directory->details->pending_file_info
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment