diff options
author | default <nobody@localhost> | 2022-10-07 17:25:40 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-10-07 17:25:40 +0200 |
commit | 8ffeab7884820ce410a23464038e6b4a2721a54a (patch) | |
tree | 3124b80c9ee8110a9067d7e0913eed62da2784f7 /html.c | |
parent | d79591c277884772021cc2a9419da068b4abfa25 (diff) |
Use xs_is_null() instead of NULL comparison when getting actor's name.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -166,8 +166,8 @@ d_char *html_msg_icon(snac *snac, d_char *os, char *msg) char *v; /* get the name */ - if ((v = xs_dict_get(actor, "name")) == NULL || *v == '\0') { - if ((v = xs_dict_get(actor, "preferredUsername")) == NULL) { + if (xs_is_null((v = xs_dict_get(actor, "name"))) || *v == '\0') { + if (xs_is_null(v = xs_dict_get(actor, "preferredUsername"))) { v = "user"; } } |