diff options
author | delphij <delphij@FreeBSD.org> | 2009-03-28 06:40:48 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2009-03-28 06:40:48 +0000 |
commit | e48618535619834d141c38be9c90eb68ebbc296a (patch) | |
tree | 2610934f2b05d04792407a85cb2223be3bccf364 /lib/libc/db | |
parent | 8d5f207dd117429b795e3fe026c15e8cf8721520 (diff) | |
download | FreeBSD-src-e48618535619834d141c38be9c90eb68ebbc296a.zip FreeBSD-src-e48618535619834d141c38be9c90eb68ebbc296a.tar.gz |
Avoid NULL deference which causes DEBUG1 to crash, not to print useful
information.
Obtained from: OpenBSD
Diffstat (limited to 'lib/libc/db')
-rw-r--r-- | lib/libc/db/hash/hash_buf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/db/hash/hash_buf.c b/lib/libc/db/hash/hash_buf.c index 6d26b16..4445fc5 100644 --- a/lib/libc/db/hash/hash_buf.c +++ b/lib/libc/db/hash/hash_buf.c @@ -282,7 +282,7 @@ newbuf(HTAB *hashp, u_int32_t addr, BUFHEAD *prev_bp) */ #ifdef DEBUG1 (void)fprintf(stderr, "NEWBUF2: %d->ovfl was %d is now %d\n", - prev_bp->addr, (prev_bp->ovfl ? bp->ovfl->addr : 0), + prev_bp->addr, (prev_bp->ovfl ? prev_bp->ovfl->addr : 0), (bp ? bp->addr : 0)); #endif prev_bp->ovfl = bp; |