From: Nuno Lopes Date: Fri, 15 Sep 2006 16:11:39 +0000 (+0000) Subject: fix a valgrind warning. this also provides a 5x speedup in the imagefttext.phpt test... X-Git-Tag: php-5.2.0RC5~156 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e299095ca142c39be5a68403806cf1c0c7932dc3;p=php fix a valgrind warning. this also provides a 5x speedup in the imagefttext.phpt test, because without this patch it never got cache hits --- 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) {