summaryrefslogtreecommitdiff
path: root/rpmio/rpmio_internal.h
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-01-09 21:46:11 +0000
committerjbj <devnull@localhost>2001-01-09 21:46:11 +0000
commit903a070e8de00c6cf6a1479994c70027eccdfd78 (patch)
treefe6c6e7dac395cec402a8ce569fa53544604c1e6 /rpmio/rpmio_internal.h
parent424793073c381d75d75bd1b4787d153ba16fd4b1 (diff)
downloadrpm-903a070e8de00c6cf6a1479994c70027eccdfd78.tar.gz
rpm-903a070e8de00c6cf6a1479994c70027eccdfd78.tar.bz2
rpm-903a070e8de00c6cf6a1479994c70027eccdfd78.zip
- fix: digests on input FD_t dinna work.
- fix: remove rebuilddb debugging leakage. CVS patchset: 4421 CVS date: 2001/01/09 21:46:11
Diffstat (limited to 'rpmio/rpmio_internal.h')
-rw-r--r--rpmio/rpmio_internal.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpmio/rpmio_internal.h b/rpmio/rpmio_internal.h
index 775a8d6a8..3cb639d1d 100644
--- a/rpmio/rpmio_internal.h
+++ b/rpmio/rpmio_internal.h
@@ -357,8 +357,8 @@ int ufdClose( /*@only@*/ void * cookie);
*/
/*@unused@*/ static inline void fdFiniMD5(FD_t fd, void **datap, size_t *lenp, int asAscii) {
if (fd->digest == NULL) {
- *datap = NULL;
- *lenp = 0;
+ if (datap) *datap = NULL;
+ if (lenp) *lenp = 0;
return;
}
rpmDigestFinal(fd->digest, datap, lenp, asAscii);
@@ -369,8 +369,8 @@ int ufdClose( /*@only@*/ void * cookie);
*/
/*@unused@*/ static inline void fdFiniSHA1(FD_t fd, void **datap, size_t *lenp, int asAscii) {
if (fd->digest == NULL) {
- *datap = NULL;
- *lenp = 0;
+ if (datap) *datap = NULL;
+ if (lenp) *lenp = 0;
return;
}
rpmDigestFinal(fd->digest, datap, lenp, asAscii);