handle zero-length files in open_blob() correctly
diff --git a/lib/object.c b/lib/object.c
index 5db2105..daab8a5 100644
--- a/lib/object.c
+++ b/lib/object.c
@@ -1023,7 +1023,7 @@ open_blob(struct got_blob_object **blob, struct got_repository *repo,
goto done;
}
- if (hdrlen >= size) {
+ if (hdrlen > size) {
err = got_error(GOT_ERR_BAD_OBJ_HDR);
goto done;
}