projects
/
php
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18cc538
)
When src->src is null this doesn't get initialized
author
Rasmus Lerdorf
<rasmus@lerdorf.com>
Mon, 21 Oct 2013 05:15:35 +0000
(22:15 -0700)
committer
Rasmus Lerdorf
<rasmus@lerdorf.com>
Mon, 21 Oct 2013 05:15:35 +0000
(22:15 -0700)
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.
ext/zip/lib/zip_source_error.c
patch
|
blob
|
history
diff --git
a/ext/zip/lib/zip_source_error.c
b/ext/zip/lib/zip_source_error.c
index ffb4652d336213bcdb6af92fff4a6ef24dff589f..70ec8bc5d452f36273ba2d2d4aa123f8a3473b2a 100644
(file)
--- 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) {
}