summaryrefslogtreecommitdiff
path: root/ext/zip/lib/zip_delete.c
diff options
context:
space:
mode:
authorAnatoliy Belsky <ab@php.net>2012-06-05 20:11:07 (GMT)
committerAnatoliy Belsky <ab@php.net>2012-06-07 19:01:31 (GMT)
commitf4a44f18b8fe5d23a11d12b048d4effce283379f (patch)
tree35850a34200dc4be272f16fa486f83a4f25194dd /ext/zip/lib/zip_delete.c
parenta39bcfc5ee3931c25bdbc5dc2409e6d9dd98ff52 (diff)
downloadphp-f4a44f18b8fe5d23a11d12b048d4effce283379f.tar.gz
rechecked the merged libzip, took also the indents from the original to
avoid confusion next time
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;
}