[PATCH] nautilus_file_get_gicon() shouldn't dereference NULL file
- From: Christian Neumair <cneumair gnome org>
- To: nautilus-list <nautilus-list gnome org>
- Subject: [PATCH] nautilus_file_get_gicon() shouldn't dereference NULL file
- Date: Mon, 25 Feb 2008 17:31:10 +0100
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]