xserver: Branch 'master'
Aaron Plattner
aplattner at kemper.freedesktop.org
Tue Jul 22 18:17:15 PDT 2008
render/filter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit bc3c03a3f3c091026310f0e8d55321cec570a0c5
Author: Pierre-Loup A. Griffais <pgriffais at nvidia.com>
Date: Tue Jul 22 17:34:37 2008 -0700
Don't return BadAlloc when trying to set a PictureFilter with no parameters when a filter with parameters was previously set.
Signed-off-by: Aaron Plattner <aplattner at nvidia.com>
diff --git a/render/filter.c b/render/filter.c
index 092313f..aa3eb1a 100644
--- a/render/filter.c
+++ b/render/filter.c
@@ -301,7 +301,7 @@ SetPictureFilter (PicturePtr pPicture, char *name, int len, xFixed *params, int
if (nparams != pPicture->filter_nparams)
{
new_params = xalloc (nparams * sizeof (xFixed));
- if (!new_params)
+ if (!new_params && nparams)
return BadAlloc;
xfree (pPicture->filter_params);
pPicture->filter_params = new_params;
More information about the xorg-commit
mailing list