Explorar o código

* Possible segfault situation fixed

svn: 329
Bryan Drewery %!s(int64=22) %!d(string=hai) anos
pai
achega
1f98e1c727
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)