Skip to content

Commit 910d475

Browse files
committed
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4: 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.
2 parents 9e4651f + 2186e15 commit 910d475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/zip/lib/zip_source_error.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
ZIP_EXTERN(void)
4141
zip_source_error(struct zip_source *src, int *ze, int *se)
4242
{
43-
int e[2];
43+
int e[2] = { 0, 0 };
4444

4545
if (src->src == NULL) {
4646
}

0 commit comments

Comments
 (0)