tree-wide: apply equals-null.cocci
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
@ -195,10 +195,10 @@ static struct lline *coalesce_lines(struct lline *base, int *lenbase,
|
||||
struct lline *baseend, *newend = NULL;
|
||||
int i, j, origbaselen = *lenbase;
|
||||
|
||||
if (newline == NULL)
|
||||
if (!newline)
|
||||
return base;
|
||||
|
||||
if (base == NULL) {
|
||||
if (!base) {
|
||||
*lenbase = lennew;
|
||||
return newline;
|
||||
}
|
||||
|
Reference in New Issue
Block a user