When src->src is null this doesn't get initialized
authorRasmus Lerdorf <rasmus@lerdorf.com>
Mon, 21 Oct 2013 05:15:35 +0000 (22:15 -0700)
committerRasmus 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

index ffb4652d336213bcdb6af92fff4a6ef24dff589f..70ec8bc5d452f36273ba2d2d4aa123f8a3473b2a 100644 (file)
@@ -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) {
     }