Since no operation is performed when free(3) is used on NULL, remove
the checks.
---
sent.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sent.c b/sent.c
index eb0ac970b1f5..3916cb0c4ad1 100644
--- a/sent.c
+++ b/sent.c
@@ -216,8 +216,7 @@ ffload(Slide *s)
s->img->bufwidth = ntohl(*(uint32_t *)&hdr[8]);
s->img->bufheight = ntohl(*(uint32_t *)&hdr[12]);
- if (s->img->buf)
- free(s->img->buf);
+ free(s->img->buf);
/* internally the image is stored in 888 format */
s->img->buf = ecalloc(s->img->bufwidth * s->img->bufheight,
strlen("888"));
@@ -625,8 +624,7 @@ xloadfonts(void)
}
for (j = 0; j < LEN(fontfallbacks); j++)
- if (fstrs[j])
- free(fstrs[j]);
+ free(fstrs[j]);
}
void
--
2.36.1