[nautilus] Guard against filename being NULL on nautilus_icon_info_lookup



commit f45d398de73c1eee924e55aadba96254d8091932
Author: Rodrigo Moya <rodrigo gnome-db org>
Date:   Thu Feb 24 17:54:20 2011 +0100

    Guard against filename being NULL on nautilus_icon_info_lookup

 libnautilus-private/nautilus-icon-info.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libnautilus-private/nautilus-icon-info.c b/libnautilus-private/nautilus-icon-info.c
index 679057d..76111a4 100644
--- a/libnautilus-private/nautilus-icon-info.c
+++ b/libnautilus-private/nautilus-icon-info.c
@@ -396,6 +396,9 @@ nautilus_icon_info_lookup (GIcon *icon,
 		}
 
 		filename = gtk_icon_info_get_filename (gtkicon_info);
+		if (filename == NULL) {
+			return nautilus_icon_info_new_for_pixbuf (NULL);
+		}
 
 		lookup_key.filename = (char *)filename;
 		lookup_key.size = size;



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