mirror of
https://git.freebsd.org/ports.git
synced 2025-07-07 20:39:18 -04:00
Rather than second-guessing what the __os_free() might be doing and avoiding it, initialize the pointer to NULL, which __os_free() will skip. This should be the safer approach if Oracle ever patches other parts of db 5.3. PR: 210829 Submitted by: Mark Millard
11 lines
341 B
C
11 lines
341 B
C
--- src/heap/heap_verify.c.orig 2013-09-09 15:35:08 UTC
|
|
+++ src/heap/heap_verify.c
|
|
@@ -122,7 +122,7 @@ __heap_vrfy(dbp, vdp, h, pgno, flags)
|
|
{
|
|
HEAPHDR *hdr;
|
|
int cnt, i, j, ret;
|
|
- db_indx_t *offsets, *offtbl, end;
|
|
+ db_indx_t *offsets = NULL, *offtbl, end;
|
|
|
|
if ((ret = __db_vrfy_datapage(dbp, vdp, h, pgno, flags)) != 0)
|
|
goto err;
|