diff options
author | Anatoliy Belsky <ab@php.net> | 2012-06-05 22:11:07 +0200 |
---|---|---|
committer | Anatoliy Belsky <ab@php.net> | 2012-06-07 21:01:31 +0200 |
commit | f4a44f18b8fe5d23a11d12b048d4effce283379f (patch) | |
tree | 35850a34200dc4be272f16fa486f83a4f25194dd /ext/zip/lib/zip_delete.c | |
parent | a39bcfc5ee3931c25bdbc5dc2409e6d9dd98ff52 (diff) | |
download | php-git-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |