X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/0683126dc365b9ce34b517547ce27dcbd4805556..2d0dedb8abc45c661e35e729b5ff71724d4d749a:/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)