client: report error if no start tag in app_config.xml

This commit is contained in:
David Anderson 2015-01-29 13:21:00 -08:00
parent 252e45dadc
commit eddebcc209
1 changed files with 6 additions and 1 deletions

View File

@ -136,7 +136,12 @@ int APP_VERSION_CONFIG::parse(XML_PARSER& xp, PROJECT* p) {
int APP_CONFIGS::parse(XML_PARSER& xp, PROJECT* p) {
int n;
clear();
if (!xp.parse_start("app_config")) return ERR_XML_PARSE;
if (!xp.parse_start("app_config")) {
msg_printf_notice(p, false, NULL,
"Missing <app_config> in app_config.xml"
);
return ERR_XML_PARSE;
}
while (!xp.get_tag()) {
if (!xp.is_tag) {
msg_printf_notice(p, false, NULL,