summaryrefslogtreecommitdiffstats
path: root/branch.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-05-02 19:18:22 +0200
committerJunio C Hamano <gitster@pobox.com>2022-05-02 19:18:22 +0200
commite6bf70d17624425aa0d7e9518b6a62dad13e4c5d (patch)
tree56fa2b491248c7ae4f03fceebda6bc344874f9e0 /branch.c
parentMerge branch 'ep/maint-equals-null-cocci' into ep/equals-null-cocci (diff)
downloadgit-e6bf70d17624425aa0d7e9518b6a62dad13e4c5d.tar.xz
git-e6bf70d17624425aa0d7e9518b6a62dad13e4c5d.zip
tree-wide: apply equals-null.cocci
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'branch.c')
-rw-r--r--branch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/branch.c b/branch.c
index d0ca2b76d2..bde705b092 100644
--- a/branch.c
+++ b/branch.c
@@ -653,7 +653,7 @@ void create_branches_recursively(struct repository *r, const char *name,
* be created in every submodule.
*/
for (i = 0; i < submodule_entry_list.entry_nr; i++) {
- if (submodule_entry_list.entries[i].repo == NULL) {
+ if (!submodule_entry_list.entries[i].repo) {
int code = die_message(
_("submodule '%s': unable to find submodule"),
submodule_entry_list.entries[i].submodule->name);