fix inverted error check in readodelta()
diff --git a/libexec/got-index-pack/got-index-pack.c b/libexec/got-index-pack/got-index-pack.c
index 752b92d..486fe19 100644
--- a/libexec/got-index-pack/got-index-pack.c
+++ b/libexec/got-index-pack/got-index-pack.c
@@ -572,7 +572,7 @@ readodelta(FILE *f, Object *o, off_t nd, off_t p, int flag)
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)