commit a98e36f8aab1cd0a9af54f7f7e881fed9f9558ba from: Stefan Sperling date: Wed Mar 18 16:11:28 2020 UTC fix inverted error check in readodelta() commit - 4a89c7905d4c18f36bbe8f879d9b22da3adb5d40 commit + a98e36f8aab1cd0a9af54f7f7e881fed9f9558ba blob - 752b92dd5f9a3f2cafeb270279cde5e9e72b5f1f blob + 486fe19714949e003d911059f08e0a0a9d87e858 --- libexec/got-index-pack/got-index-pack.c +++ libexec/got-index-pack/got-index-pack.c @@ -572,7 +572,7 @@ readodelta(FILE *f, Object *o, off_t nd, off_t p, int goto error; } - if (got_inflate_to_mem(&d, &n, f) == NULL) + if (got_inflate_to_mem(&d, &n, f) != NULL) goto error; o->len = ftello(f) - o->off; if(d == NULL || n != nd)