diff --git a/src/common/kernel/movement.c b/src/common/kernel/movement.c index 1bd31f878..5e084744b 100644 --- a/src/common/kernel/movement.c +++ b/src/common/kernel/movement.c @@ -465,7 +465,7 @@ leave_trail(unit * u, region **route, region * to) a = a->nexttype; } - if (a!=NULL) { + if (a==NULL) { a = a_add(&(r->attribs), a_new(&at_traveldir_new)); td = (traveldir *)a->data.v; td->no = sh->no; diff --git a/src/common/kernel/xmlreader.c b/src/common/kernel/xmlreader.c index 4c4894603..e63589f72 100644 --- a/src/common/kernel/xmlreader.c +++ b/src/common/kernel/xmlreader.c @@ -932,7 +932,7 @@ xml_readstrings(xmlXPathContextPtr xpath, xmlNodePtr * nodeTab, int nodeNr, bool locale_setstring(lang, zName, xml_to_locale(text)); xmlFree(text); } else { - log_warning(("string %s has no test in locale %s\n", + log_warning(("string %s has no text in locale %s\n", zName, locale_name(lang))); } }