From 9adb2d3fccc6a85eb37f7b9709ca4028fce636e8 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 24 May 2011 15:38:33 +0300 Subject: [PATCH] Remove unused length return variables on doHeaderUnload() - doHeaderUnload() is safe to call with NULL lengthPtr, the length is only of interest to headerRead() and headerWrite() --- lib/header.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/header.c b/lib/header.c index 38cea37..19f7c6a 100644 --- a/lib/header.c +++ b/lib/header.c @@ -710,9 +710,7 @@ errxit: void * headerUnload(Header h) { - size_t length; - void * uh = doHeaderUnload(h, &length); - return uh; + return doHeaderUnload(h, NULL); } /** @@ -922,8 +920,7 @@ errxit: Header headerReload(Header h, rpmTagVal tag) { Header nh; - size_t length; - void * uh = doHeaderUnload(h, &length); + void * uh = doHeaderUnload(h, NULL); h = headerFree(h); if (uh == NULL) -- 2.7.4