diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-05-02 10:09:21 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-05-02 10:09:21 -0700 |
commit | 72a4ea71e5f29e4078363e87e4471128ff713a62 (patch) | |
tree | 1815b403d331f497c0e52980923fdbbee3058710 /reftable/stack_test.c | |
parent | 2b0a58d164b0642be3eeb476fecd28114445cdd5 (diff) | |
download | git-72a4ea71e5f29e4078363e87e4471128ff713a62.tar.gz |
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.c | 2 |
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))) { |