From: Ralph Corderoy Date: Fri, 21 Oct 2016 23:09:10 +0000 (+0100) Subject: Don't test boundary in output_content() for NULL; it never is. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/5356de2c15cdb7fdb76662740e264b4363d88cf5?hp=b36be1d314b4619fdc66cd2f22a1527b3672adfc Don't test boundary in output_content() for NULL; it never is. --- diff --git a/uip/mhoutsbr.c b/uip/mhoutsbr.c index c9974456..89b4b932 100644 --- a/uip/mhoutsbr.c +++ b/uip/mhoutsbr.c @@ -96,7 +96,7 @@ output_content (CT ct, FILE *out) * headers (since it has no body). */ if (ct->c_ctexbody) { - if (boundary && *boundary != '\0') + if (*boundary != '\0') free(boundary); return OK; } @@ -124,7 +124,7 @@ output_content (CT ct, FILE *out) fprintf (out, "\n--%s\n", boundary); if (output_content (p, out) == NOTOK) { - if (boundary && *boundary != '\0') + if (*boundary != '\0') free(boundary); return NOTOK; } @@ -205,7 +205,7 @@ output_content (CT ct, FILE *out) break; } - if (boundary && *boundary != '\0') + if (*boundary != '\0') free(boundary); return result;