diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-03-25 12:45:37 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-03-25 12:45:37 +0200 |
commit | 7dce058cb8da856a268e391e9beeaf3e097086a3 (patch) | |
tree | 5c7eee9d93115c4547e5926d79bb60ecc79b1d67 /lib/rpmps.c | |
parent | 0ad0e345502c4b261e0c3378fd0830f7eacab340 (diff) | |
download | rpm-7dce058cb8da856a268e391e9beeaf3e097086a3.tar.gz |
Minor cleanup to rpmpsGetProblem()
- avoid dumb pointer fiddles, ps->probs is just a bleeping array
Diffstat (limited to 'lib/rpmps.c')
-rw-r--r-- | lib/rpmps.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rpmps.c b/lib/rpmps.c index acc8ae9f8..1d8e4123e 100644 --- a/lib/rpmps.c +++ b/lib/rpmps.c @@ -100,11 +100,11 @@ int rpmpsNextIterator(rpmpsi psi) rpmProblem rpmpsGetProblem(rpmpsi psi) { - rpmProblem *p = NULL; + rpmProblem p = NULL; if (psi != NULL && psi->ix >= 0 && psi->ix < rpmpsNumProblems(psi->ps)) { - p = psi->ps->probs + psi->ix; + p = psi->ps->probs[psi->ix]; } - return p ? *p : NULL; + return p; } rpmps rpmpsCreate(void) |