diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-10 12:19:17 -0700 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2016-10-19 21:40:28 +0200 |
commit | ad51fbdb41f8f6bb898ca60b5e547a24aa4ef700 (patch) | |
tree | 3204044e5cae4d66741a2ac5e3b39fdc533dbf2b /nx-X11/lib/X11/RegstFlt.c | |
parent | 105cd4711219e8f47e21fde03ab2accffbd5d451 (diff) | |
download | nx-libs-ad51fbdb41f8f6bb898ca60b5e547a24aa4ef700.tar.gz nx-libs-ad51fbdb41f8f6bb898ca60b5e547a24aa4ef700.tar.bz2 nx-libs-ad51fbdb41f8f6bb898ca60b5e547a24aa4ef700.zip |
miRegionCopy(): handle realloc failure better
Zero out the region size when freeing the region so callers don't think
there's anything there. (Pointer is already set to NULL from the realloc
result itself.) Return 0 to the callers, and have them cascade that back
to their callers to indicate failure, instead of their usual return value
of 1 on success.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib/X11/RegstFlt.c')
0 files changed, 0 insertions, 0 deletions