summaryrefslogtreecommitdiff
path: root/src/btree/bt_misc.c
diff options
context:
space:
mode:
authorKeith Bostic <keith.bostic@wiredtiger.com>2011-12-24 11:41:35 +0000
committerKeith Bostic <keith.bostic@wiredtiger.com>2011-12-24 11:41:35 +0000
commit7284aff82e7b60155aba5649228647c25ab133ab (patch)
treea7094970c68029e805cfbcc7c3a13e8e53639ea0 /src/btree/bt_misc.c
parentd6e9b503fcb8a30ef53ca02fa2a24db04ef7e2d4 (diff)
downloadmongo-7284aff82e7b60155aba5649228647c25ab133ab.tar.gz
bug fix: __wt_page_addr_string() wasn't returning the char * reference
in the case of the root page.
Diffstat (limited to 'src/btree/bt_misc.c')
-rw-r--r--src/btree/bt_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/btree/bt_misc.c b/src/btree/bt_misc.c
index f0d783a0bbd..ca4cd9ac3e9 100644
--- a/src/btree/bt_misc.c
+++ b/src/btree/bt_misc.c
@@ -81,7 +81,7 @@ __wt_page_addr_string(WT_SESSION_IMPL *session, WT_BUF *buf, WT_PAGE *page)
if (WT_PAGE_IS_ROOT(page)) {
buf->data = "[Root]";
buf->size = WT_STORE_SIZE(strlen("[Root]"));
- return (0);
+ return (buf->data);
}
__wt_get_addr(page->parent, page->parent_ref.ref, &addr, &size);