From ec65f5e5f0a56b398878f5087685b71942db362a Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 7 Sep 2009 17:00:49 +0300 Subject: [PATCH] Move rl to the scope where its needed, dont bother assigning NULL --- build/spec.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/build/spec.c b/build/spec.c index 64abd37..a867500 100644 --- a/build/spec.c +++ b/build/spec.c @@ -460,7 +460,6 @@ rpmSpec newSpec(void) rpmSpec freeSpec(rpmSpec spec) { - struct ReadLevelEntry *rl; if (spec == NULL) return NULL; @@ -481,10 +480,10 @@ rpmSpec freeSpec(rpmSpec spec) closeSpec(spec); while (spec->readStack) { - rl = spec->readStack; + struct ReadLevelEntry *rl = spec->readStack; spec->readStack = rl->next; rl->next = NULL; - rl = _free(rl); + free(rl); } spec->sourceRpmName = _free(spec->sourceRpmName); -- 2.7.4