From afe8a9070bc62db9cfde1e30147178c40d391d93 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 2 May 2022 09:50:37 -0700 Subject: tree-wide: apply equals-null.cocci Signed-off-by: Junio C Hamano --- trailer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'trailer.c') diff --git a/trailer.c b/trailer.c index 7c7cb61a94..374b84f6b4 100644 --- a/trailer.c +++ b/trailer.c @@ -1029,7 +1029,7 @@ static FILE *create_in_place_tempfile(const char *file) /* Create temporary file in the same directory as the original */ tail = strrchr(file, '/'); - if (tail != NULL) + if (tail) strbuf_add(&filename_template, file, tail - file + 1); strbuf_addstr(&filename_template, "git-interpret-trailers-XXXXXX"); -- cgit v1.2.1