]> git.ipfire.org Git - thirdparty/git.git/blobdiff - dir.c
Merge branch 'ep/maint-equals-null-cocci' for maint-2.35
[thirdparty/git.git] / dir.c
diff --git a/dir.c b/dir.c
index d91295f2bcdcf86f0b1c41a32ac6a17d5d3cf65e..fc2874aa43dee3c3dc0474d5d09b0ca339609656 100644 (file)
--- a/dir.c
+++ b/dir.c
@@ -3047,7 +3047,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;