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:
5006b8f
)
Remove dead NULL-assignment before reassign
author
Panu Matilainen
<pmatilai@redhat.com>
Tue, 31 May 2011 09:35:18 +0000
(12:35 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Tue, 31 May 2011 09:35:18 +0000
(12:35 +0300)
lib/query.c
patch
|
blob
|
history
diff --git
a/lib/query.c
b/lib/query.c
index
3da114a
..
73d64e3
100644
(file)
--- a/
lib/query.c
+++ b/
lib/query.c
@@
-545,7
+545,7
@@
int rpmcliQuery(rpmts ts, QVA_t qva, char * const * argv)
if (!(qva->qva_flags & _QUERY_FOR_BITS) && qva->qva_queryFormat == NULL) {
char * fmt = rpmExpand("%{?_query_all_fmt}\n", NULL);
if (fmt == NULL || strlen(fmt) <= 1) {
- f
mt = _f
ree(fmt);
+ free(fmt);
fmt = xstrdup("%{nvra}\n");
}
qva->qva_queryFormat = fmt;