NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/51538: Missing braces in bt_debug.c



>Number:         51538
>Category:       lib
>Synopsis:       Missing braces in bt_debug.c
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 09 07:20:00 +0000 2016
>Originator:     henning petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
One braces is missing.
>How-To-Repeat:

>Fix:
diff -u -p -r1.18 bt_debug.c
--- lib/libc/db/btree/bt_debug.c	24 Sep 2016 21:31:25 -0000	1.18
+++ lib/libc/db/btree/bt_debug.c	6 Oct 2016 09:11:51 -0000
@@ -312,7 +312,7 @@ __bt_stat(DB *dbp)
 	pcont = pinternal = pleaf = 0;
 	nkeys = ifree = lfree = 0;
 	for (i = P_ROOT; i < t->bt_mp->npages &&
-	    (h = mpool_get(t->bt_mp, i, MPOOL_IGNOREPIN)) != NULL; ++i)
+	    (h = mpool_get(t->bt_mp, i, MPOOL_IGNOREPIN)) != NULL; ++i) {
 		switch (h->flags & P_TYPE) {
 		case P_BINTERNAL:
 		case P_RINTERNAL:



Home | Main Index | Thread Index | Old Index