summaryrefslogtreecommitdiff
path: root/sign/rpmgensig.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-05-29 11:52:17 +0300
committerPanu Matilainen <pmatilai@redhat.com>2011-05-29 11:52:17 +0300
commit2a9a150290c15f0788e484f3c8e87d3920d6cb4b (patch)
treeaef8ef3cbcdf3ad397fbe505f07e05f909de7a75 /sign/rpmgensig.c
parentb1597da353522a0ba7581766f31d8fbd5272ac66 (diff)
downloadlibrpm-tizen-2a9a150290c15f0788e484f3c8e87d3920d6cb4b.tar.gz
librpm-tizen-2a9a150290c15f0788e484f3c8e87d3920d6cb4b.tar.bz2
librpm-tizen-2a9a150290c15f0788e484f3c8e87d3920d6cb4b.zip
Eliminate dead NULL-assignments at scope-end in librpmsign
Diffstat (limited to 'sign/rpmgensig.c')
-rw-r--r--sign/rpmgensig.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sign/rpmgensig.c b/sign/rpmgensig.c
index 1aa15f643..4f1099f40 100644
--- a/sign/rpmgensig.c
+++ b/sign/rpmgensig.c
@@ -155,7 +155,7 @@ static int putSignature(Header sigh, int ishdr, uint8_t *pkt, size_t pktlen)
rc = (headerPut(sigh, &sigtd, HEADERPUT_DEFAULT) == 0);
exit:
- dig = pgpFreeDig(dig);
+ pgpFreeDig(dig);
return rc;
}
@@ -310,7 +310,7 @@ exit:
(void) unlink(fn);
free(fn);
}
- h = headerFree(h);
+ headerFree(h);
if (fd != NULL) (void) Fclose(fd);
return ret;
}
@@ -496,12 +496,12 @@ static int rpmSign(const char *rpm, int deleting, const char *passPhrase)
headerPut(nh, &copytd, HEADERPUT_DEFAULT);
rpmtdFreeData(&copytd);
}
- hi = headerFreeIterator(hi);
- oh = headerFree(oh);
+ headerFreeIterator(hi);
+ headerFree(oh);
- sigh = headerFree(sigh);
+ headerFree(sigh);
sigh = headerLink(nh);
- nh = headerFree(nh);
+ headerFree(nh);
}
/* Eliminate broken digest values. */
@@ -583,12 +583,12 @@ exit:
if (fd) (void) closeFile(&fd);
if (ofd) (void) closeFile(&ofd);
- sigh = rpmFreeSignature(sigh);
+ rpmFreeSignature(sigh);
/* Clean up intermediate target */
if (sigtarget) {
unlink(sigtarget);
- sigtarget = _free(sigtarget);
+ free(sigtarget);
}
if (trpm) {
(void) unlink(trpm);