From f4a44f18b8fe5d23a11d12b048d4effce283379f Mon Sep 17 00:00:00 2001 From: Anatoliy Belsky Date: Tue, 5 Jun 2012 22:11:07 +0200 Subject: rechecked the merged libzip, took also the indents from the original to avoid confusion next time --- ext/zip/lib/zip_delete.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/zip/lib/zip_delete.c') diff --git a/ext/zip/lib/zip_delete.c b/ext/zip/lib/zip_delete.c index da3e65b28a..131d444124 100644 --- a/ext/zip/lib/zip_delete.c +++ b/ext/zip/lib/zip_delete.c @@ -40,7 +40,7 @@ ZIP_EXTERN(int) zip_delete(struct zip *za, zip_uint64_t idx) { - if (idx < 0 || idx >= za->nentry) { + if (idx >= za->nentry) { _zip_error_set(&za->error, ZIP_ER_INVAL, 0); return -1; } -- cgit v1.2.1