[PATCH] nautilus_file_get_gicon() shouldn't dereference NULL file



The attached patch should fix bug 512593:

http://bugzilla.gnome.org/show_bug.cgi?id=512593

best regards,
 Christian Neumair

-- 
Christian Neumair <cneumair gnome org>
Index: libnautilus-private/nautilus-file.c
===================================================================
--- libnautilus-private/nautilus-file.c	(Revision 13805)
+++ libnautilus-private/nautilus-file.c	(Arbeitskopie)
@@ -3269,6 +3283,10 @@ nautilus_file_get_gicon (NautilusFile *f
 	int i;
 	gboolean changed;
 
+	if (file == NULL) {
+		return NULL;
+	}
+
 	if (file->details->icon) {
 		icon = NULL;
 		


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]