# HG changeset patch # User Matti Hamalainen # Date 1425175085 -7200 # Node ID ffd1ca99e456ef153d5baa04edb6b93668962a66 # Parent 6c409806871f0c55d7d3344140eb3b04ba5e5e75 Rename label. diff -r 6c409806871f -r ffd1ca99e456 src/dmres.c --- 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; }