Proper error handling in rpmDigestDup()
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 16 Mar 2009 12:13:00 +0000 (14:13 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 16 Mar 2009 12:13:00 +0000 (14:13 +0200)
commit847c991b2bde08dce508152278f515ae5ff97fd8
tree75b2b0a013f115070da32c6b0515f7cdb537b66c
parented342d7df6523ae2f7f06e5bb02f766a37614bb6
Proper error handling in rpmDigestDup()
- tolerate calling with NULL
- avoid allocations in case of failure
- return NULL instead of calling exit(), ick
rpmio/digest.c