]> git.ipfire.org Git - thirdparty/git.git/blobdiff - transport.c
Merge branch 'fh/transport-push-leakfix'
[thirdparty/git.git] / transport.c
index 110a0d5cc5f26e9f1e2bb29415209cdd9b8a56eb..52db7a3cb09fa6129e399c82f404a574884053b3 100644 (file)
@@ -438,7 +438,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;