Kaynağa Gözat

Check for cmd in uicb_launcher

Martin Duquesnoy 12 yıl önce
ebeveyn
işleme
8728e81096
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  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))
           {