summaryrefslogtreecommitdiffstats
path: root/dba.c
diff options
context:
space:
mode:
Diffstat (limited to 'dba.c')
-rw-r--r--dba.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dba.c b/dba.c
index b2737922..8762d78e 100644
--- a/dba.c
+++ b/dba.c
@@ -143,7 +143,8 @@ dba_page_new(struct dba_array *pages, const char *name, const char *sect,
page = dba_array_new(DBP_MAX, 0);
entry = dba_array_new(1, DBA_STR | DBA_GROW);
- dba_array_add(entry, prepend(name, NAME_FILE & NAME_MASK));
+ if (name != NULL)
+ dba_array_add(entry, prepend(name, NAME_FILE & NAME_MASK));
dba_array_add(page, entry);
entry = dba_array_new(1, DBA_STR | DBA_GROW);
dba_array_add(entry, (void *)sect);