Przeglądaj źródła

* Possible segfault situation fixed

svn: 329
Bryan Drewery 22 lat temu
rodzic
commit
1f98e1c727
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/botmsg.c

+ 1 - 1
src/botmsg.c

@@ -408,7 +408,7 @@ void putbot(char *bot, char *par)
 {
   int i;
   char msg[SGRAB-110];
-  if (!bot[0] || !par[0])
+  if (!bot || !par || !bot[0] || !par[0])
     return;
   i = nextbot(bot);
   if (i < 0)