X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=inline;f=src%2Fjson%2Fjhash.hpp;h=8394acff339cfd13519f12a97ae8923562e68d70;hb=refs%2Fchanges%2F31%2F10131%2F1;hp=6ba1e502d26685d62c2e2623f7dfd72c5524d251;hpb=6ef23e1d7f7f47ccab5be6ff1b68e5cfdda80ad2;p=ric-plt%2Fxapp-frame-cpp.git diff --git a/src/json/jhash.hpp b/src/json/jhash.hpp index 6ba1e50..8394acf 100644 --- a/src/json/jhash.hpp +++ b/src/json/jhash.hpp @@ -40,8 +40,8 @@ namespace xapp { class Jhash { private: - void* st; // the resulting symbol table generated by parse - void* master_st; // if user switches to a sub-blob; this tracks the original root st + void* st = NULL; // the resulting symbol table generated by parse + void* master_st = NULL; // if user switches to a sub-blob; this tracks the original root st Jhash& operator=( const Jhash& soi ); // jhashes cannot be copied because of underlying symbol table goo Jhash( const Jhash& soi ); @@ -57,7 +57,7 @@ class Jhash { void Unset_blob( ); bool Set_blob_ele( const char* name, int eidx ); // set from an array element - bool Parse_errors( ); + const bool Parse_errors( ); void Dump(); std::string String( const char* name ); // value fetching