diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-09-07 17:00:49 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-09-07 17:00:49 +0300 |
commit | ec65f5e5f0a56b398878f5087685b71942db362a (patch) | |
tree | 2ec1ae248d50a7d61faaf7f2f619fbd562bf8b79 | |
parent | caa6dc91acd958928eeaf440ade7f01311bcf330 (diff) | |
download | rpm-ec65f5e5f0a56b398878f5087685b71942db362a.tar.gz rpm-ec65f5e5f0a56b398878f5087685b71942db362a.tar.bz2 rpm-ec65f5e5f0a56b398878f5087685b71942db362a.zip |
Move rl to the scope where its needed, dont bother assigning NULL
-rw-r--r-- | build/spec.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/build/spec.c b/build/spec.c index 64abd37bb..a867500ad 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); |