summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/btree/bt_root.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/btree/bt_root.c b/src/btree/bt_root.c
index 75231a54e21..52e18830b86 100644
--- a/src/btree/bt_root.c
+++ b/src/btree/bt_root.c
@@ -178,7 +178,8 @@ __btree_get_turtle(
path = NULL;
WT_RET(__wt_filename(session, WT_SCHEMA_TURTLE, &path));
- WT_RET_TEST((fp = fopen(path, "r")) == NULL, 0);
+ if ((fp = fopen(path, "r")) == NULL)
+ goto done;
while (fgets(line, (int)sizeof(line), fp) != NULL) {
if ((p = strchr(line, '\n')) == NULL)
break;