git.stg.codes
/
stg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5985f3c
)
Fixed error handling.
author
Maxim Mamontov
<faust.madf@gmail.com>
Tue, 27 May 2014 13:59:12 +0000
(16:59 +0300)
committer
Maxim Mamontov
<faust.madf@gmail.com>
Tue, 27 May 2014 13:59:12 +0000
(16:59 +0300)
stglibs/srvconf.lib/parsers/get_user.cpp
patch
|
blob
|
history
diff --git
a/stglibs/srvconf.lib/parsers/get_user.cpp
b/stglibs/srvconf.lib/parsers/get_user.cpp
index 3da8ee98f99a192ee111f5fcc41b7b32a1354eb4..e796d45094cd249ca5a8933b7f78209ac0f1c7c6 100644
(file)
--- a/
stglibs/srvconf.lib/parsers/get_user.cpp
+++ b/
stglibs/srvconf.lib/parsers/get_user.cpp
@@
-139,14
+139,11
@@
if (strcasecmp(el, "user") == 0)
error = attr[3];
else
error = "User not found.";
- return;
}
else if (strcasecmp(attr[0], "login") == 0 && attr[1])
info.login = attr[1];
- parsingAnswer = true;
}
- else
- parsingAnswer = true;
+ parsingAnswer = true;
}
}
//-----------------------------------------------------------------------------