]> git.ipfire.org Git - thirdparty/git.git/blobdiff - http-fetch.c
Merge branch 'ep/maint-equals-null-cocci' for maint-2.35
[thirdparty/git.git] / http-fetch.c
index 58b394cd47f3f068177c622e927532497126e14c..31bc5c7767ce865bb3fb1a89f311f7d2b03c7e6d 100644 (file)
@@ -55,7 +55,7 @@ static void fetch_single_packfile(struct object_id *packfile_hash,
        http_init(NULL, url, 0);
 
        preq = new_direct_http_pack_request(packfile_hash->hash, xstrdup(url));
-       if (preq == NULL)
+       if (!preq)
                die("couldn't create http pack request");
        preq->slot->results = &results;
        preq->index_pack_args = index_pack_args;