X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/0683126dc365b9ce34b517547ce27dcbd4805556..4c064456f5d2093f802b474736d5be5051f857a0:/stglibs/srvconf.lib/parsers/get_admin.cpp diff --git a/stglibs/srvconf.lib/parsers/get_admin.cpp b/stglibs/srvconf.lib/parsers/get_admin.cpp index a728e7d1..41217dfb 100644 --- a/stglibs/srvconf.lib/parsers/get_admin.cpp +++ b/stglibs/srvconf.lib/parsers/get_admin.cpp @@ -90,6 +90,7 @@ if (depth == 0 && parsingAnswer) void GET_ADMIN::PARSER::ParseAdmin(const char * el, const char ** attr) { if (strcasecmp(el, "admin") == 0) + { if (attr && attr[0] && attr[1]) { if (strcasecmp(attr[1], "error") == 0) @@ -104,6 +105,7 @@ if (strcasecmp(el, "admin") == 0) } else parsingAnswer = true; + } } //----------------------------------------------------------------------------- void GET_ADMIN::PARSER::ParseAdminParams(const char * el, const char ** attr)