aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/data.c b/data.c
index 82a1776..4e5851a 100644
--- a/data.c
+++ b/data.c
@@ -350,6 +350,9 @@ int user_persist(snac *snac, int publish)
const char *of = xs_dict_get(old, fields[n]);
const char *nf = xs_dict_get(snac->config, fields[n]);
+ if (of == NULL && nf == NULL)
+ continue;
+
if (xs_type(of) != XSTYPE_STRING || xs_type(nf) != XSTYPE_STRING || strcmp(of, nf)) {
nw = 1;
break;