cvs: gd /libgd gd_topal.c

From: Date: Thu, 04 Jan 2007 12:49:26 +0000
Subject: cvs: gd /libgd gd_topal.c
Groups: php.gd.cvs 
Request: Send a blank email to php-gd-cvs+get-67@lists.php.net to get a copy of this message
pajoye Thu Jan 4 12:49:26 2007 UTC Modified files: /gd/libgd gd_topal.c Log: #14, set fserror after the check http://cvs.php.net/viewvc.cgi/gd/libgd/gd_topal.c?r1=1.14&r2=1.15&diff_format=u Index: gd/libgd/gd_topal.c diff -u gd/libgd/gd_topal.c:1.14 gd/libgd/gd_topal.c:1.15 --- gd/libgd/gd_topal.c:1.14 Wed Jan 3 21:57:34 2007 +++ gd/libgd/gd_topal.c Thu Jan 4 12:49:26 2007 @@ -1936,11 +1936,11 @@ arraysize = (size_t) ((nim->sx + 2) * (3 * sizeof (FSERROR))); /* Allocate Floyd-Steinberg workspace. */ cquantize->fserrors = gdRealloc(cquantize->fserrors, arraysize); - memset(cquantize->fserrors, 0, arraysize); if (!cquantize->fserrors) { goto outOfMemory; } + memset(cquantize->fserrors, 0, arraysize); cquantize->on_odd_row = FALSE; /* Do the work! */

« previous php.gd.cvs (#67) next »