diff options
| author | default <nobody@localhost> | 2025-04-18 09:08:48 +0200 |
|---|---|---|
| committer | default <nobody@localhost> | 2025-04-18 09:08:48 +0200 |
| commit | 1ebf2a2d874f3ee589785e8175abdcb33a963d72 (patch) | |
| tree | 80fa888a7057d406eec6c10eeb36ff5c36c2e608 /data.c | |
| parent | 99230ba053238d7ad80b7793c7a8a8752e7b7049 (diff) | |
New command-line option 'add_to_list'.
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2404,7 +2404,7 @@ xs_val *list_content(snac *user, const char *list, const char *actor_md5, int op break; case 1: /** append actor to list **/ - if (actor_md5 != NULL) { + if (xs_is_string(actor_md5) && xs_is_hex(actor_md5)) { if (!index_in_md5(fn, actor_md5)) index_add_md5(fn, actor_md5); } @@ -2412,7 +2412,7 @@ xs_val *list_content(snac *user, const char *list, const char *actor_md5, int op break; case 2: /** delete actor from list **/ - if (actor_md5 != NULL) + if (xs_is_string(actor_md5) && xs_is_hex(actor_md5)) index_del_md5(fn, actor_md5); break; |