aboutsummaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-05-02 10:15:55 -0700
committerJunio C Hamano <gitster@pobox.com>2022-05-02 10:15:55 -0700
commit7710d1be607a7c8549ddb560dda2dd97ff38ab7a (patch)
tree99aa46ec9597bc7292c1168ed2c04d4a9f3322cb /dir.c
parent6cd33dceed60949e2dbc32e3f0f5e67c4c882e1e (diff)
parent72a4ea71e5f29e4078363e87e4471128ff713a62 (diff)
downloadgit-7710d1be607a7c8549ddb560dda2dd97ff38ab7a.tar.xz
Merge branch 'ep/maint-equals-null-cocci' into ep/equals-null-cocci
* ep/maint-equals-null-cocci: tree-wide: apply equals-null.cocci tree-wide: apply equals-null.cocci contrib/coccinnelle: add equals-null.cocci
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index f2b0f24210..231a0c09a4 100644
--- a/dir.c
+++ b/dir.c
@@ -3054,7 +3054,7 @@ char *git_url_basename(const char *repo, int is_bundle, int is_bare)
* Skip scheme.
*/
start = strstr(repo, "://");
- if (start == NULL)
+ if (!start)
start = repo;
else
start += 3;