summaryrefslogtreecommitdiff
path: root/ext/zip/lib/zip_delete.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zip/lib/zip_delete.c')
-rw-r--r--ext/zip/lib/zip_delete.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/zip/lib/zip_delete.c b/ext/zip/lib/zip_delete.c
index da3e65b..131d444 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;
}