diff options
Diffstat (limited to 'lib/libc/db/btree/bt_overflow.c')
-rw-r--r-- | lib/libc/db/btree/bt_overflow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/db/btree/bt_overflow.c b/lib/libc/db/btree/bt_overflow.c index 1867073b4e0..c9c411f97cf 100644 --- a/lib/libc/db/btree/bt_overflow.c +++ b/lib/libc/db/btree/bt_overflow.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bt_overflow.c,v 1.9 2005/08/05 13:02:59 espie Exp $ */ +/* $OpenBSD: bt_overflow.c,v 1.10 2007/08/08 23:57:19 ray Exp $ */ /*- * Copyright (c) 1990, 1993, 1994 @@ -89,7 +89,7 @@ __ovfl_get(BTREE *t, void *p, size_t *ssz, void **buf, size_t *bufsz) #endif /* Make the buffer bigger as necessary. */ if (*bufsz < sz) { - tp = (char *)(*buf == NULL ? malloc(sz) : realloc(*buf, sz)); + tp = realloc(*buf, sz); if (tp == NULL) return (RET_ERROR); *buf = tp; |