Browse Source

Merge pull request #13417 from ghalliday/issue23599

HPCC-23599 Allow the legacy configuration filename to be omitted

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 5 năm trước cách đây
mục cha
commit
a6488ab5a6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      system/jlib/jptree.cpp

+ 1 - 1
system/jlib/jptree.cpp

@@ -7972,7 +7972,7 @@ jlib_decl IPropertyTree * loadConfiguration(const char * defaultYaml, const char
     }
     else
     {
-        if (checkFileExists(legacyFilename))
+        if (legacyFilename && checkFileExists(legacyFilename))
             delta.setown(createPTreeFromXMLFile(legacyFilename, ipt_caseInsensitive));
 
         if (delta && mapper)