mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-09-13 04:51:15 +00:00
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
This commit is contained in:
parent
fb86154ed1
commit
fff1fc0665
|
@ -1,3 +1,10 @@
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue