Mercurial > hg > dmlib
changeset 1001:198156b930d7
Fix error checking and propagation. 10L.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 01 Mar 2015 03:05:17 +0200 |
parents | 5df750e47721 |
children | 2da97be2aa1f |
files | src/dmzlib.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dmzlib.c Sun Mar 01 03:03:44 2015 +0200 +++ b/src/dmzlib.c Sun Mar 01 03:05:17 2015 +0200 @@ -322,8 +322,8 @@ if (zout + len > a->zoutEnd) { - if (!dmZLibExpand(a, zout, len)) - return 0; + if ((ret = dmZLibExpand(a, zout, len)) != DMERR_OK) + return ret; zout = a->zout; } p = (Uint8 *) (zout - dist); @@ -492,7 +492,7 @@ } else if (type == 3) - return 0; + return DMERR_INVALID_DATA; else { if (type == 1)