From aab10975560853c3482eb0e0deca11acbc323a1c Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Fri, 26 Jul 2013 20:54:38 +0300 Subject: [PATCH] Small fix. --- stglibs/srvconf.lib/parser.cpp | 4 ++-- stglibs/srvconf.lib/servconf.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/stglibs/srvconf.lib/parser.cpp b/stglibs/srvconf.lib/parser.cpp index 62537359..284e1127 100644 --- a/stglibs/srvconf.lib/parser.cpp +++ b/stglibs/srvconf.lib/parser.cpp @@ -848,8 +848,8 @@ else { if (strcasecmp(el, "Auth") == 0) { - if (attr && attr[0]) - list.push_back(attr[0]); + if (attr && attr[0] && attr[1]) + list.push_back(attr[1]); return 0; } } diff --git a/stglibs/srvconf.lib/servconf.cpp b/stglibs/srvconf.lib/servconf.cpp index 078466d7..0ca3028c 100644 --- a/stglibs/srvconf.lib/servconf.cpp +++ b/stglibs/srvconf.lib/servconf.cpp @@ -379,7 +379,6 @@ return st_ok; //----------------------------------------------------------------------------- int SERVCONF::Start(const char *el, const char **attr) { -printfd(__FILE__, "<%s>\n", el); currParser->ParseStart(el, attr); return 0; } -- 2.43.2