From 5784602544e97d1baa84f76130cd9547f46c70c2 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sun, 5 Nov 2006 15:04:50 +0000 Subject: - Merge from gd-cvs, initialize the signature not the infile ctx NB: good that we don't use getC :) --- ext/gd/libgd/gd_png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/gd/libgd/gd_png.c b/ext/gd/libgd/gd_png.c index 4f4167a754..99b5cf96e1 100644 --- a/ext/gd/libgd/gd_png.c +++ b/ext/gd/libgd/gd_png.c @@ -126,7 +126,7 @@ 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 -- cgit v1.2.1