Mercurial > hg > dmlib
changeset 1010:ffd1ca99e456
Rename label.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 01 Mar 2015 03:58:05 +0200 |
parents | 6c409806871f |
children | aa745d31612e |
files | src/dmres.c |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dmres.c Sun Mar 01 03:57:33 2015 +0200 +++ b/src/dmres.c Sun Mar 01 03:58:05 2015 +0200 @@ -408,20 +408,20 @@ if ((inBuf = dmMalloc(node->length)) == NULL) { ret = DMERR_MALLOC; - goto err; + goto out; } if (fread(inBuf, sizeof(Uint8), node->length, handle->lib->packFile->file) != node->length) { ret = DMERR_FREAD; - goto err; + goto out; } if ((ctx.zout = ctx.zoutStart = dmMalloc(node->size)) == NULL) { ret = dmError(DMERR_MALLOC, "Failed to allocate initial decompression buffer.\n"); - goto err; + goto out; } ctx.zbuffer = inBuf; @@ -430,10 +430,10 @@ ctx.expandable = TRUE; if ((ret = dmZLibParseHeader(&ctx, TRUE)) != DMERR_OK) - goto err; + goto out; if ((ret = dmZLibDecode(&ctx)) != DMERR_OK) - goto err; + goto out; handle->rawOffset = 0; handle->rawData = ctx.zoutStart; @@ -467,7 +467,7 @@ res = dmError(DMERR_NOT_FOUND, "Entry '%s' not found in PACK file.\n", handle->filename); - goto error; + goto out; } // Seek to entry @@ -475,12 +475,12 @@ { res = dmError(DMERR_FSEEK, "Could not seek node position in PACK file.\n"); - goto error; + goto out; } res = dm_pack_decompress(handle, node); -error: +out: return res; }