summaryrefslogtreecommitdiff
path: root/ext/zip/lib/zip_source_error.c
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2013-10-22 12:23:07 +0900
committerYasuo Ohgaki <yohgaki@php.net>2013-10-22 12:23:07 +0900
commit2cf5614f5fb6dc250567900a31d1bdd3c534f0d8 (patch)
tree85bfec161e39c8b12a778468d2235730c9b59a0e /ext/zip/lib/zip_source_error.c
parent9789df77643c34ffdcfc71049b4c57b45efd0d48 (diff)
parent5cc797d119bb3936a8acce48ede04fa29a3219c6 (diff)
downloadphp-git-2cf5614f5fb6dc250567900a31d1bdd3c534f0d8.tar.gz
Merge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4
* 'PHP-5.4' of git.php.net:php-src: (101 commits) exif NEWS add tests for bug #62523 Merged PR #293 (Exif crash on unknown encoding was fixed) By: Draal Conflicts: configure.in main/php_version.h Just SKIP that test on travis fix memory leak on error (from Coverity scan) Fix coverity issue with -1 returned by findOffset not being handled by getPreferredTag 5.4.21 release date When src->src is null this doesn't get initialized but it is still used, so the passed in *ze will point to unitialized memory. Hopefully src->src is never null, but just in case this initialization doesn't hurt. Fix typo Clean up this weird safe_emalloc() call Minor Coverity tweaks - Moved NULL check before dereferencing - Fixed possible NULL ptr dereference - Fixed possible uninitialized scalar variable usage (spotted by Coverity) Remove senseless check here - Fix extern declaration according to definition - Fix possible memory leak - Moved allocation to if block to make Coverity happy - Fixed possible memory leak Fix unitialized opened_path here - found by Coverity ...
Diffstat (limited to 'ext/zip/lib/zip_source_error.c')
-rw-r--r--ext/zip/lib/zip_source_error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/zip/lib/zip_source_error.c b/ext/zip/lib/zip_source_error.c
index ffb4652d33..70ec8bc5d4 100644
--- a/ext/zip/lib/zip_source_error.c
+++ b/ext/zip/lib/zip_source_error.c
@@ -40,7 +40,7 @@
ZIP_EXTERN(void)
zip_source_error(struct zip_source *src, int *ze, int *se)
{
- int e[2];
+ int e[2] = { 0, 0 };
if (src->src == NULL) {
}