summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/schema/schema_open.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/schema/schema_open.c')
-rw-r--r--src/third_party/wiredtiger/src/schema/schema_open.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/schema/schema_open.c b/src/third_party/wiredtiger/src/schema/schema_open.c
index e7ce4e42498..1554d021953 100644
--- a/src/third_party/wiredtiger/src/schema/schema_open.c
+++ b/src/third_party/wiredtiger/src/schema/schema_open.c
@@ -427,6 +427,8 @@ __schema_open_table(WT_SESSION_IMPL *session,
const char *tconfig;
char *tablename;
+ *tablep = NULL;
+
cursor = NULL;
table = NULL;
tablename = NULL;
@@ -527,6 +529,8 @@ __wt_schema_get_colgroup(WT_SESSION_IMPL *session,
const char *tablename, *tend;
u_int i;
+ if (tablep != NULL)
+ *tablep = NULL;
*colgroupp = NULL;
tablename = uri;
@@ -571,6 +575,8 @@ __wt_schema_get_index(WT_SESSION_IMPL *session,
const char *tablename, *tend;
u_int i;
+ if (tablep != NULL)
+ *tablep = NULL;
*indexp = NULL;
tablename = uri;