]> granicus.if.org Git - php/commitdiff
- MFH: Merge from gd-cvs, initialize the signature not the infile ctx
authorPierre Joye <pajoye@php.net>
Sun, 5 Nov 2006 15:06:50 +0000 (15:06 +0000)
committerPierre Joye <pajoye@php.net>
Sun, 5 Nov 2006 15:06:50 +0000 (15:06 +0000)
ext/gd/libgd/gd_png.c

index 4f4167a75450181c3b29439cbb694762584bf4d3..d499182064089b838c311e765116b84b63859266 100644 (file)
@@ -126,7 +126,8 @@ gdImagePtr gdImageCreateFromPngCtx (gdIOCtx * infile)
 
        /* Make sure the signature can't match by dumb luck -- TBB */
        /* GRR: isn't sizeof(infile) equal to the size of the pointer? */
-       memset (infile, 0, sizeof(infile));
+       memset (sig, 0, sizeof(sig));
+
 
          /* first do a quick check that the file really is a PNG image; could
           * have used slightly more general png_sig_cmp() function instead