diff options
author | Jindrich Novy <jnovy@redhat.com> | 2008-04-16 08:28:11 +0200 |
---|---|---|
committer | Jindrich Novy <jnovy@redhat.com> | 2008-04-16 09:39:26 +0200 |
commit | e50ff40c22e5cc4e7cdfecbb9808ad5ce3d6b77c (patch) | |
tree | 55a0866f26c44d99318b22fadc5caf82f4161087 /lib | |
parent | 9a2b4cba0501235345ea42e068bff86bd17d15d3 (diff) | |
download | rpm-e50ff40c22e5cc4e7cdfecbb9808ad5ce3d6b77c.tar.gz rpm-e50ff40c22e5cc4e7cdfecbb9808ad5ce3d6b77c.tar.bz2 rpm-e50ff40c22e5cc4e7cdfecbb9808ad5ce3d6b77c.zip |
Remove useless statements from showQueryPackage()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/query.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/query.c b/lib/query.c index 8791c37c6..c283661bd 100644 --- a/lib/query.c +++ b/lib/query.c @@ -153,13 +153,10 @@ int showQueryPackage(QVA_t qva, rpmts ts, Header h) if (qva->qva_queryFormat != NULL) { char * str = queryHeader(h, qva->qva_queryFormat); if (str) { - size_t tx = (te - t); - sb = strlen(str); if (sb) { tb += sb; - t = xrealloc(t, tb); - te = t + tx; + te = t = xrealloc(t, tb); } te = stpcpy(te, str); str = _free(str); |