From 15c787ef14d2637d7ffebd9dda93a46e5d4832d9 Mon Sep 17 00:00:00 2001 From: Marius Halden Date: Tue, 2 Aug 2016 13:30:03 +0200 Subject: Set NULL_OK for sets with NULL as default --- set.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/set.c b/set.c index 91dd7bd5..8727209f 100644 --- a/set.c +++ b/set.c @@ -63,6 +63,8 @@ set_t *set_add(set_t **head, const char *key, const char *def, set_eval eval, vo } if (def) { s->def = g_strdup(def); + } else { + s->flags |= SET_NULL_OK; } s->eval = eval; -- cgit v1.2.3