Explorar el Código

Check for cmd in uicb_launcher

Martin Duquesnoy hace 12 años
padre
commit
8728e81096
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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))
           {