diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2011-05-27 13:53:36 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2011-05-27 15:23:34 +0300 |
commit | 40f74c9a6d46d92a8c869a1ccd53a642382621ed (patch) | |
tree | 3ac7fc0b29d6928e71c339c56e49802df7db7650 /build | |
parent | 4df6fb0e2448628d001a2634d7f8d5013fbd777c (diff) | |
download | librpm-tizen-40f74c9a6d46d92a8c869a1ccd53a642382621ed.tar.gz librpm-tizen-40f74c9a6d46d92a8c869a1ccd53a642382621ed.tar.bz2 librpm-tizen-40f74c9a6d46d92a8c869a1ccd53a642382621ed.zip |
Eliminate bunch of obvious dead NULL assignments in preamble parsing
Diffstat (limited to 'build')
-rw-r--r-- | build/parsePreamble.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/build/parsePreamble.c b/build/parsePreamble.c index f03c29b45..c9f513223 100644 --- a/build/parsePreamble.c +++ b/build/parsePreamble.c @@ -314,11 +314,11 @@ static int addSource(rpmSpec spec, Package pkg, const char *field, rpmTagVal tag rpmluavSetListMode(var, 1); rpmluavSetValue(var, RPMLUAV_STRING, body); rpmluaSetVar(lua, var); - var = rpmluavFree(var); + rpmluavFree(var); rpmluaPop(lua); } #endif - body = _free(body); + free(body); } return 0; @@ -451,8 +451,8 @@ static rpmRC checkForValidArchitectures(rpmSpec spec) rc = RPMRC_OK; exit: - arch = _free(arch); - os = _free(os); + free(arch); + free(os); return rc; } @@ -500,7 +500,7 @@ static int checkForDuplicates(Header h, const char * NVR) } lastTag = tag; } - hi = headerFreeIterator(hi); + headerFreeIterator(hi); return res; } @@ -531,7 +531,7 @@ static void fillOutMainPackage(Header h) if (val && *val != '%') { headerPutString(h, ot->ot_tag, val); } - val = _free(val); + free(val); } } } |