Quellcode durchsuchen

HPCC-26014 prevent warning in removeConfigUpdateHook

Signed-off-by: Jake Smith <jake.smith@lexisnexisrisk.com>
Jake Smith vor 4 Jahren
Ursprung
Commit
6c24a5924a
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  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)
     {