Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-05-02 20:09:21 +0300
committerJunio C Hamano <gitster@pobox.com>2022-05-02 20:09:21 +0300
commit72a4ea71e5f29e4078363e87e4471128ff713a62 (patch)
tree1815b403d331f497c0e52980923fdbbee3058710 /reftable/stack_test.c
parent2b0a58d164b0642be3eeb476fecd28114445cdd5 (diff)
tree-wide: apply equals-null.cocci
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reftable/stack_test.c')
-rw-r--r--reftable/stack_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/reftable/stack_test.c b/reftable/stack_test.c
index f4c743db80..e2c7014303 100644
--- a/reftable/stack_test.c
+++ b/reftable/stack_test.c
@@ -35,7 +35,7 @@ static int count_dir_entries(const char *dirname)
DIR *dir = opendir(dirname);
int len = 0;
struct dirent *d;
- if (dir == NULL)
+ if (!dir)
return 0;
while ((d = readdir(dir))) {