Skip to content

Commit 2186e15

Browse files
committed
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.
1 parent 18cc538 commit 2186e15

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)