projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
765cbed
)
Minor cleanups to cpio_doio()
author
Panu Matilainen
<pmatilai@redhat.com>
Wed, 18 May 2011 09:04:12 +0000
(12:04 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Wed, 18 May 2011 09:04:12 +0000
(12:04 +0300)
- Remove redundant rpmtsEmpty(), this is done from rpmtsFree() anyway
- Dont bother NULL'ing local variables at exit
build/pack.c
patch
|
blob
|
history
diff --git
a/build/pack.c
b/build/pack.c
index
4aedebf
..
c3534e3
100644
(file)
--- a/
build/pack.c
+++ b/
build/pack.c
@@
-79,10
+79,8
@@
static rpmRC cpio_doio(FD_t fdo, Header h, CSA_t csa, const char * fmodeMacro)
rc = RPMRC_FAIL;
}
- rpmtsEmpty(ts);
-
- failedFile = _free(failedFile);
- ts = rpmtsFree(ts);
+ free(failedFile);
+ rpmtsFree(ts);
return rc;
}