settings: Don't enumerate key/value pairs with NULL value

This commit is contained in:
Tobias Brunner
2014-05-15 11:28:07 +02:00
parent 47a3ed979b
commit 3855dc01ec
+1 -1
View File
@@ -817,7 +817,7 @@ static bool kv_filter(hashtable_t *seen, kv_t **in, char **key,
void *none, char **value) void *none, char **value)
{ {
*key = (*in)->key; *key = (*in)->key;
if (seen->get(seen, *key)) if (seen->get(seen, *key) || !(*in)->value)
{ {
return FALSE; return FALSE;
} }