summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dba.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dba.c b/dba.c
index d5fd5b85..b2737922 100644
--- a/dba.c
+++ b/dba.c
@@ -177,7 +177,7 @@ dba_page_add(struct dba_array *page, int32_t ie, const char *str)
if (ie == DBP_ARCH) {
if (entries == NULL)
return;
- if (str == NULL) {
+ if (str == NULL || *str == '\0') {
dba_array_free(entries);
dba_array_set(page, DBP_ARCH, NULL);
return;