diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-05-02 19:06:00 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-05-02 19:06:04 +0200 |
commit | 2b0a58d164b0642be3eeb476fecd28114445cdd5 (patch) | |
tree | 2759549fcdd5d3ce4c9776f67937b4b75c07070f /branch.c | |
parent | Git 2.35.3 (diff) | |
parent | tree-wide: apply equals-null.cocci (diff) | |
download | git-2b0a58d164b0642be3eeb476fecd28114445cdd5.tar.xz git-2b0a58d164b0642be3eeb476fecd28114445cdd5.zip |
Merge branch 'ep/maint-equals-null-cocci' for maint-2.35
* ep/maint-equals-null-cocci:
tree-wide: apply equals-null.cocci
contrib/coccinnelle: add equals-null.cocci
Diffstat (limited to 'branch.c')
-rw-r--r-- | branch.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -405,7 +405,7 @@ void create_branch(struct repository *r, break; } - if ((commit = lookup_commit_reference(r, &oid)) == NULL) + if (!(commit = lookup_commit_reference(r, &oid))) die(_("not a valid branch point: '%s'"), start_name); oidcpy(&oid, &commit->object.oid); |