diff options
author | Rasmus Lerdorf <rasmus@lerdorf.com> | 2013-10-20 22:15:35 -0700 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@lerdorf.com> | 2013-10-20 22:15:35 -0700 |
commit | 2186e1583d9d65d0e79d05ec706f1e12b97bb035 (patch) | |
tree | c14c81d115d65544b00b18a6e9a5832f2540b519 /ext/zip/lib | |
parent | 18cc5386de399f4410d8e5bf0a7aa5a06b0309be (diff) | |
download | php-git-2186e1583d9d65d0e79d05ec706f1e12b97bb035.tar.gz |
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.
Diffstat (limited to 'ext/zip/lib')
-rw-r--r-- | ext/zip/lib/zip_source_error.c | 2 |
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) { } |