소스 검색

* Only free_conf() if we're NOT the localhub

svn: 953
Bryan Drewery 22 년 전
부모
커밋
306f105274
1개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. 2 5
      src/main.c

+ 2 - 5
src/main.c

@@ -560,10 +560,6 @@ static void startup_checks() {
   if (can_stat(cfile))
     readconf(cfile, enc);
       
-#ifdef LEAF
-  if (localhub)
-#endif /* LEAF */
-    showconf();
 #ifdef S_CONFEDIT
   if (do_confedit)
     confedit(cfile);		/* this will exit() */
@@ -643,8 +639,9 @@ static void startup_checks() {
       if (updating) exit(0); /* just let the timer restart us (our parent) */
     }
   }
+  if (!localhub)		/* only clear conf on NON localhubs, we need it for cmd_conf */
 #endif /* LEAF */
-  free_conf();
+    free_conf();
 }
 
 #include "mod/static.h"