From: chris mikkelson Date: Sat, 2 Nov 2013 02:35:15 +0000 (-0500) Subject: Fix bug caught by clang static checker. X-Git-Url: https://git.mikk.net/?a=commitdiff_plain;ds=inline;p=liburl Fix bug caught by clang static checker. --- diff --git a/message.c b/message.c index a63184d..0feb0e9 100644 --- a/message.c +++ b/message.c @@ -156,7 +156,7 @@ parse_cxfer(struct message_state *ms, char *h, size_t hlen) if (match > 0) { char *enc; pcre_get_substring(h, ovec, match, 0, (const char **)&enc); - if (!enc) res = 0; + if (!enc) return 0; if (!strcasecmp(enc, "quoted-printable")) { ms->encoding = quoted_module; } else if (!strcasecmp(enc, "base64")) {