From: Panu Matilainen Date: Mon, 7 Sep 2009 14:00:49 +0000 (+0300) Subject: Move rl to the scope where its needed, dont bother assigning NULL X-Git-Tag: tznext/4.11.0.1.tizen20130304~2796 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec65f5e5f0a56b398878f5087685b71942db362a;p=tools%2Flibrpm-tizen.git Move rl to the scope where its needed, dont bother assigning NULL --- 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);