From 5356de2c15cdb7fdb76662740e264b4363d88cf5 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Sat, 22 Oct 2016 00:09:10 +0100 Subject: [PATCH] Don't test boundary in output_content() for NULL; it never is. --- uip/mhoutsbr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.56.0