]> git.ipfire.org Git - thirdparty/git.git/blobdiff - transport.c
Merge branch 'ep/maint-equals-null-cocci' for maint-2.35
[thirdparty/git.git] / transport.c
index 2a3e32415455baf09f165837cb169e31ab6876f5..1e136b779869051509362009817542719e0e237d 100644 (file)
@@ -427,7 +427,7 @@ static int fetch_refs_via_pack(struct transport *transport,
                args.self_contained_and_connected;
        data->options.connectivity_checked = args.connectivity_checked;
 
-       if (refs == NULL)
+       if (!refs)
                ret = -1;
        if (report_unmatched_refs(to_fetch, nr_heads))
                ret = -1;