projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05e16d4
)
Use rstrcat() instead of rasprintf(), less fuss involved
author
Panu Matilainen
<pmatilai@redhat.com>
Tue, 10 Mar 2009 09:09:35 +0000
(11:09 +0200)
committer
Panu Matilainen
<pmatilai@redhat.com>
Tue, 10 Mar 2009 09:09:35 +0000
(11:09 +0200)
lib/rpmchecksig.c
patch
|
blob
|
history
diff --git
a/lib/rpmchecksig.c
b/lib/rpmchecksig.c
index
7f14252
..
76e44fa
100644
(file)
--- a/
lib/rpmchecksig.c
+++ b/
lib/rpmchecksig.c
@@
-545,7
+545,7
@@
static const char *sigtagname(rpmSigTag sigtag, int upper)
int rpmVerifySignatures(QVA_t qva, rpmts ts, FD_t fd,
const char * fn)
{
- char *buf = NULL
, *b
;
+ char *buf = NULL;
char * missingKeys, *untrustedKeys;
struct rpmtd_s sigtd;
rpmTag sigtag;
@@
-744,10
+744,8
@@
int rpmVerifySignatures(QVA_t qva, rpmts ts, FD_t fd,
}
free(result);
- rasprintf(&b, "%s%s", buf, msg);
- free(buf);
+ rstrcat(&buf, msg);
free(msg);
- buf = b;
}
res += failed;