diff options
-rw-r--r-- | src/config/config.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/config/config.c b/src/config/config.c index 92f917915e1..300b1923b9e 100644 --- a/src/config/config.c +++ b/src/config/config.c @@ -735,11 +735,16 @@ __wt_config_gets_def(WT_SESSION_IMPL *session, *value = false_value; value->val = def; + if (cfg == NULL || cfg[0] == NULL || cfg[1] == NULL) return (0); - else if (cfg[2] == NULL) + + if (cfg[2] == NULL) { WT_RET_NOTFOUND_OK( __wt_config_getones(session, cfg[1], key, value)); + return (0); + } + return (__wt_config_gets(session, cfg, key, value)); } |