Avoid launchbar failed when icon file missing.
authorJim Huang <jserv.tw@gmail.com>
Mon, 18 Feb 2008 22:46:29 +0000 (22:46 +0000)
committerJim Huang <jserv.tw@gmail.com>
Mon, 18 Feb 2008 22:46:29 +0000 (22:46 +0000)
src/plugins/launchbar.c

index 25ee820..ec2ec47 100644 (file)
@@ -288,6 +288,10 @@ read_button(plugin *p, char** fp)
         h = 10000;
     }
 
+    /* still not found? */
+    if (!fname)
+        goto error;
+
     button = fb_button_new_from_file( fname, w, h, 0x202020, TRUE );
     btn->widget = button;