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:
ab890ee
)
Dont bother allocating iterator if there's no data to iterate
author
Panu Matilainen
<pmatilai@redhat.com>
Thu, 25 Mar 2010 10:34:06 +0000
(12:34 +0200)
committer
Panu Matilainen
<pmatilai@redhat.com>
Thu, 25 Mar 2010 10:34:06 +0000
(12:34 +0200)
lib/rpmps.c
patch
|
blob
|
history
diff --git
a/lib/rpmps.c
b/lib/rpmps.c
index
c19c490
..
cf2275d
100644
(file)
--- a/
lib/rpmps.c
+++ b/
lib/rpmps.c
@@
-67,7
+67,7
@@
int rpmpsNumProblems(rpmps ps)
rpmpsi rpmpsInitIterator(rpmps ps)
{
rpmpsi psi = NULL;
- if (ps != NULL) {
+ if (ps != NULL
&& ps->numProblems > 0
) {
psi = xcalloc(1, sizeof(*psi));
psi->ps = rpmpsLink(ps);
psi->ix = -1;