1
0
Эх сурвалжийг харах

* fatal() might be called before conf is initialized

svn: 1814
Bryan Drewery 21 жил өмнө
parent
commit
bf93e393eb
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/main.c

+ 1 - 1
src/main.c

@@ -148,7 +148,7 @@ static char *getfullbinname(const char *argv_zero)
 
 
 void fatal(const char *s, int recoverable)
 void fatal(const char *s, int recoverable)
 {
 {
-  if (!conf.bot->hub)
+  if (conf && !conf.bot->hub)
     nuke_server((char *) s);
     nuke_server((char *) s);
 
 
   if (s && s[0])
   if (s && s[0])