commit a2665c3

default  ·  2024-11-24 08:37:59 +0000 UTC
parent 9fee970
Minor tweak to user_persist().
1 files changed,  +3, -0
M data.c
M data.c
+3, -0
 1@@ -350,6 +350,9 @@ int user_persist(snac *snac, int publish)
 2                     const char *of = xs_dict_get(old, fields[n]);
 3                     const char *nf = xs_dict_get(snac->config, fields[n]);
 4 
 5+                    if (of == NULL && nf == NULL)
 6+                        continue;
 7+
 8                     if (xs_type(of) != XSTYPE_STRING || xs_type(nf) != XSTYPE_STRING || strcmp(of, nf)) {
 9                         nw = 1;
10                         break;