diff options
| author | 2024-11-24 09:37:59 +0100 | |
|---|---|---|
| committer | 2024-11-24 09:37:59 +0100 | |
| commit | a2665c3cc9bb94a7969a904bfcd210e20cf038e7 (patch) | |
| tree | 41be9484799e0b63722d429966358af145a919a4 | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | penes-snac2-a2665c3cc9bb94a7969a904bfcd210e20cf038e7.tar.gz penes-snac2-a2665c3cc9bb94a7969a904bfcd210e20cf038e7.tar.xz penes-snac2-a2665c3cc9bb94a7969a904bfcd210e20cf038e7.zip | |
Minor tweak to user_persist().
| -rw-r--r-- | data.c | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -350,6 +350,9 @@ int user_persist(snac *snac, int publish) | |||
| 350 | const char *of = xs_dict_get(old, fields[n]); | 350 | const char *of = xs_dict_get(old, fields[n]); |
| 351 | const char *nf = xs_dict_get(snac->config, fields[n]); | 351 | const char *nf = xs_dict_get(snac->config, fields[n]); |
| 352 | 352 | ||
| 353 | if (of == NULL && nf == NULL) | ||
| 354 | continue; | ||
| 355 | |||
| 353 | if (xs_type(of) != XSTYPE_STRING || xs_type(nf) != XSTYPE_STRING || strcmp(of, nf)) { | 356 | if (xs_type(of) != XSTYPE_STRING || xs_type(nf) != XSTYPE_STRING || strcmp(of, nf)) { |
| 354 | nw = 1; | 357 | nw = 1; |
| 355 | break; | 358 | break; |