grep: remove redundant "fixed" field re-assignment to 0
[gitweb.git] / mailinfo.c
index f59162453eecdfb841383f71911303b594aa81e4..1652ec11f5b173ad8078a7598590f6f198e2dbb9 100644 (file)
@@ -920,8 +920,7 @@ static int handle_boundary(struct mailinfo *mi, struct strbuf *line)
                /* we hit an end boundary */
                /* pop the current boundary off the stack */
                strbuf_release(*(mi->content_top));
-               free(*(mi->content_top));
-               *(mi->content_top) = NULL;
+               FREE_AND_NULL(*(mi->content_top));
 
                /* technically won't happen as is_multipart_boundary()
                   will fail first.  But just in case..