fix coverity warnings

This commit is contained in:
Enno Rehling 2017-02-14 12:15:36 +01:00
parent 3ea12be564
commit aa230cc191
2 changed files with 8 additions and 3 deletions

View File

@ -102,9 +102,13 @@ static void a_upgradekeys(attrib **alist, attrib *abegin) {
ak = a_add(alist, a_new(&at_keys));
}
}
if (ak) {
ak->data.v = keys;
if (keys) {
keys[0] = n + i;
}
}
}
attrib_type at_key = {
"key",

View File

@ -11,8 +11,9 @@
const char *eressea_version(void) {
#ifdef ERESSEA_BUILDNO
return ERESSEA_VERSION "-" ERESSEA_BUILDNO;
#endif
#else
return ERESSEA_VERSION;
#endif
}
int version_no(const char *str) {