cvs: gd /libgd gd_topal.c
[email protected] ("Pierre-Alain Joye")
| Newsgroups | php.gd.cvs |
|---|---|
| Message-ID | <cvspajoye1167914966@cvsserver> |
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! */