aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
Diffstat (limited to 'format.c')
-rw-r--r--format.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/format.c b/format.c
index 8c5a0698..e254eb22 100644
--- a/format.c
+++ b/format.c
@@ -795,8 +795,11 @@ format_find(struct format_tree *ft, const char *key, int modifiers)
found = s;
goto found;
}
- if (fe->value == NULL && fe->cb != NULL)
+ if (fe->value == NULL && fe->cb != NULL) {
fe->cb(ft, fe);
+ if (fe->value == NULL)
+ fe->value = xstrdup("");
+ }
found = fe->value;
goto found;
}