diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-12-15 11:47:47 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-12-15 11:47:47 +0200 |
commit | b4588a1202783dd9bbee594aa5aea022ccdd3fc9 (patch) | |
tree | 01c212b49497df5241700db4f6cda987b7448df7 /lib/rpmps.c | |
parent | 1a0a12cf159a05471be62016a318d0653ae30ff5 (diff) | |
download | librpm-tizen-b4588a1202783dd9bbee594aa5aea022ccdd3fc9.tar.gz librpm-tizen-b4588a1202783dd9bbee594aa5aea022ccdd3fc9.tar.bz2 librpm-tizen-b4588a1202783dd9bbee594aa5aea022ccdd3fc9.zip |
Remove bogus const from rpmProblemString() return type
- its malloced so it needs to be freed
- fix all users to actually free
Diffstat (limited to 'lib/rpmps.c')
-rw-r--r-- | lib/rpmps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmps.c b/lib/rpmps.c index bb78e51db..68f740542 100644 --- a/lib/rpmps.c +++ b/lib/rpmps.c @@ -296,7 +296,7 @@ unsigned long rpmProblemGetLong(const rpmProblem p) return (p->ulong1); } -const char * rpmProblemString(const rpmProblem prob) +char * rpmProblemString(const rpmProblem prob) { const char * pkgNEVR = (prob->pkgNEVR ? prob->pkgNEVR : "?pkgNEVR?"); const char * altNEVR = (prob->altNEVR ? prob->altNEVR : "? ?altNEVR?"); |