diff options
| author | default <nobody@localhost> | 2024-11-24 09:37:59 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2024-11-24 09:37:59 +0100 |
| commit | a2665c3cc9bb94a7969a904bfcd210e20cf038e7 (patch) | |
| tree | 41be9484799e0b63722d429966358af145a919a4 /data.c | |
| parent | 9fee9708090b752a619e5f855870d46c486886d8 (diff) | |
Minor tweak to user_persist().
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |