diff options
Diffstat (limited to 'lib/libc/db/recno/rec_search.c')
| -rw-r--r-- | lib/libc/db/recno/rec_search.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/db/recno/rec_search.c b/lib/libc/db/recno/rec_search.c index a1feff8a4173..acc109e9925b 100644 --- a/lib/libc/db/recno/rec_search.c +++ b/lib/libc/db/recno/rec_search.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char sccsid[] = "@(#)rec_search.c 8.3 (Berkeley) 2/21/94"; +static char sccsid[] = "@(#)rec_search.c 8.4 (Berkeley) 7/14/94"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -91,9 +91,8 @@ __rec_search(t, recno, op) total += r->nrecs; } - if (__bt_push(t, pg, index - 1) == RET_ERROR) - return (NULL); - + BT_PUSH(t, pg, index - 1); + pg = r->pgno; switch (op) { case SDELETE: |
