diff options
author | John Sullivan <sullivan@src.gnome.org> | 2000-02-14 18:19:23 +0000 |
---|---|---|
committer | John Sullivan <sullivan@src.gnome.org> | 2000-02-14 18:19:23 +0000 |
commit | 6db4c052ff0981ff003b46938b8141b6c03a9674 (patch) | |
tree | 7b4361a5038ce873c47cfb4a0c732d19b2114a4e /libnautilus/nautilus-icon-factory.c | |
parent | 305e3f870c1e1d9b461d5e43d52bcade43880b25 (diff) | |
download | nautilus-6db4c052ff0981ff003b46938b8141b6c03a9674.tar.gz |
Quick fixes to some NULL-dereference problems in new index title code;
also made zoom level change stick until you visit a location that had a zoom
level set earlier.
Diffstat (limited to 'libnautilus/nautilus-icon-factory.c')
-rw-r--r-- | libnautilus/nautilus-icon-factory.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libnautilus/nautilus-icon-factory.c b/libnautilus/nautilus-icon-factory.c index f0698f23a..bf86db7bf 100644 --- a/libnautilus/nautilus-icon-factory.c +++ b/libnautilus/nautilus-icon-factory.c @@ -408,6 +408,9 @@ nautilus_icon_factory_get_icon_for_file (NautilusFile *file) char *uri, *custom_image; gboolean is_symbolic_link; NautilusScalableIcon *scalable_icon; + + if (file == NULL) + return NULL; factory = nautilus_get_current_icon_factory (); |