From e299095ca142c39be5a68403806cf1c0c7932dc3 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Fri, 15 Sep 2006 16:11:39 +0000 Subject: [PATCH] fix a valgrind warning. this also provides a 5x speedup in the imagefttext.phpt test, because without this patch it never got cache hits --- ext/gd/libgd/gdft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/gd/libgd/gdft.c b/ext/gd/libgd/gdft.c index 6603cd64c3..30ac2768c9 100644 --- a/ext/gd/libgd/gdft.c +++ b/ext/gd/libgd/gdft.c @@ -534,7 +534,7 @@ static void * tweenColorFetch (char **error, void *key) pixel = a->pixel = b->pixel; bg = a->bgcolor = b->bgcolor; fg = a->fgcolor = b->fgcolor; - im = b->im; + im = a->im = b->im; /* if fg is specified by a negative color idx, then don't antialias */ if (fg < 0) { -- 2.50.1