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,8 +102,12 @@ static void a_upgradekeys(attrib **alist, attrib *abegin) {
ak = a_add(alist, a_new(&at_keys)); ak = a_add(alist, a_new(&at_keys));
} }
} }
if (ak) {
ak->data.v = keys; ak->data.v = keys;
if (keys) {
keys[0] = n + i; keys[0] = n + i;
}
}
} }
attrib_type at_key = { attrib_type at_key = {

View File

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