Sfoglia il codice sorgente

HPCC-26014 prevent warning in removeConfigUpdateHook

Signed-off-by: Jake Smith <jake.smith@lexisnexisrisk.com>
Jake Smith 4 anni fa
parent
commit
6c24a5924a
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      system/jlib/jptree.cpp

+ 2 - 0
system/jlib/jptree.cpp

@@ -8666,6 +8666,8 @@ unsigned installConfigUpdateHook(ConfigUpdateFunc notifyFunc)
 
 void removeConfigUpdateHook(unsigned notifyFuncId)
 {
+    if (0 == notifyFuncId)
+        return;
 #ifdef _CONTAINERIZED
     if (!configFileUpdater)
     {