mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
Merge branch 'ep/maint-equals-null-cocci'
Introduce and apply coccinelle rule to discourage an explicit comparison between a pointer and NULL, and applies the clean-up to the maintenance track. * ep/maint-equals-null-cocci: tree-wide: apply equals-null.cocci tree-wide: apply equals-null.cocci contrib/coccinnelle: add equals-null.cocci
This commit is contained in:
@@ -483,7 +483,7 @@ int submodule_uses_worktrees(const char *path)
|
||||
return 0;
|
||||
|
||||
d = readdir_skip_dot_and_dotdot(dir);
|
||||
if (d != NULL)
|
||||
if (d)
|
||||
ret = 1;
|
||||
closedir(dir);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user