X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/17dab87336302938de1f031008cc4c4af31d2590..23d052c42f43430e4ff776a80b9643dbc7d1289d:/stglibs/srvconf.lib/parser_get_users.cpp diff --git a/stglibs/srvconf.lib/parser_get_users.cpp b/stglibs/srvconf.lib/parser_get_users.cpp index 6996dbaf..d4e44d36 100644 --- a/stglibs/srvconf.lib/parser_get_users.cpp +++ b/stglibs/srvconf.lib/parser_get_users.cpp @@ -26,7 +26,7 @@ #include PARSER_GET_USERS::PARSER_GET_USERS() - : callabck(NULL), + : callback(NULL), data(NULL), depth(0) { @@ -53,7 +53,7 @@ if (depth > 0) if (depth == 0) if (callback) - callback(&info, data); + callback(info, data); } //----------------------------------------------------------------------------- void PARSER_GET_USERS::ParseUsers(const char * el, const char ** /*attr*/) @@ -70,7 +70,7 @@ info.push_back(userInfo); void PARSER_GET_USERS::SetCallback(CALLBACK f, void * d) { callback = f; -data = data; +data = d; } //----------------------------------------------------------------------------- void PARSER_GET_USERS::UserCallback(const PARSER_GET_USER::INFO & info, void * data)