nautilus r13699 - in trunk: . libnautilus-private
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: nautilus r13699 - in trunk: . libnautilus-private
- Date: Wed, 6 Feb 2008 15:34:28 +0000 (GMT)
Author: alexl
Date: Wed Feb 6 15:34:28 2008
New Revision: 13699
URL: http://svn.gnome.org/viewvc/nautilus?rev=13699&view=rev
Log:
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)
Modified:
trunk/ChangeLog
trunk/libnautilus-private/nautilus-directory-async.c
Modified: trunk/libnautilus-private/nautilus-directory-async.c
==============================================================================
--- trunk/libnautilus-private/nautilus-directory-async.c (original)
+++ trunk/libnautilus-private/nautilus-directory-async.c Wed Feb 6 15:34:28 2008
@@ -957,6 +957,16 @@
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]