Skip to content

Commit

Permalink
Fix issue trusteddomainproject#121: Don't use implicit assignment tes…
Browse files Browse the repository at this point in the history
…t in an "if".
  • Loading branch information
Murray S. Kucherawy committed Mar 18, 2021
1 parent 9fdbdf9 commit 31bb5f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opendmarc/opendmarc-arcares.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ opendmarc_arcares_parse (u_char *hdr, struct arcares *aar)
case AAR_TAG_INSTANCE:
aar->instance = atoi(tag_value);
/* next value will be unlabeled authserv_id */
if (token = strsep((char **) &tmp_ptr, ";"))
if ((token = strsep((char **) &tmp_ptr, ";")) != NULL)
{
leading_space_len = strspn(token, " \n\t");
tag_value = opendmarc_arcares_strip_whitespace(token);
Expand Down

0 comments on commit 31bb5f7

Please sign in to comment.