summaryrefslogtreecommitdiff
path: root/src/config/config_api.c
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2015-05-01 07:22:25 -0400
committerKeith Bostic <keith@wiredtiger.com>2015-05-01 07:22:25 -0400
commit8b2b88a41c30dc1c175be9c53c8f3fef4ddf9165 (patch)
tree721907b9ad3715e6c3222ce0a8691561112f285f /src/config/config_api.c
parentd97b588a16072ce6be9c7bfef2306227610ace09 (diff)
downloadmongo-8b2b88a41c30dc1c175be9c53c8f3fef4ddf9165.tar.gz
__wt_strdup and __wt_strndup both handle NULL source arguments.
Diffstat (limited to 'src/config/config_api.c')
-rw-r--r--src/config/config_api.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/config/config_api.c b/src/config/config_api.c
index deff33a10bd..4e8f0d08400 100644
--- a/src/config/config_api.c
+++ b/src/config/config_api.c
@@ -322,8 +322,7 @@ __wt_configure_method(WT_SESSION_IMPL *session,
newcheck = &checks[cnt];
newcheck->name = newcheck_name;
WT_ERR(__wt_strdup(session, type, &newcheck->type));
- if (check != NULL)
- WT_ERR(__wt_strdup(session, check, &newcheck->checks));
+ WT_ERR(__wt_strdup(session, check, &newcheck->checks));
entry->checks = checks;
entry->checks_entries = 0;