Browse Source

Check for cmd in uicb_launcher

Martin Duquesnoy 12 years ago
parent
commit
8728e81096
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/launcher.c

+ 3 - 0
src/launcher.c

@@ -426,6 +426,9 @@ uicb_launcher(Uicb cmd)
 {
      struct launcher *l;
 
+     if(!cmd)
+          return;
+
      SLIST_FOREACH(l, &W->h.launcher, next)
           if(!strcmp(l->name, cmd))
           {