diff options
author | Pierre-Loup A. Griffais <pgriffais@nvidia.com> | 2008-07-22 17:34:37 -0700 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-07-23 13:50:54 -0400 |
commit | e909a396194e64119d04fc6ecb68ddc4265a3e49 (patch) | |
tree | c025ed2a34cdfeacc9c157df4052fa43758735c0 | |
parent | c217cb96dccb39ffd689086b6d833a1963dfb661 (diff) |
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@nvidia.com>
(cherry picked from commit bc3c03a3f3c091026310f0e8d55321cec570a0c5)
-rw-r--r-- | render/filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/filter.c b/render/filter.c index 092313f6e..aa3eb1a9e 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; |