summaryrefslogtreecommitdiff
path: root/src/os_common/os_alloc.c
diff options
context:
space:
mode:
authorAlex Gorrod <alexander.gorrod@mongodb.com>2017-09-20 15:14:40 +1000
committerAlex Gorrod <alexander.gorrod@mongodb.com>2017-09-20 15:14:40 +1000
commit827b48a34227243c809d41fac3dc909ed46b0c5e (patch)
tree4214e4aaffc0184a327dbc3bbe909354c3808c62 /src/os_common/os_alloc.c
parentb062bf8fd27ce086b99a32db2144567b9e395940 (diff)
parent3579adf6c8b96d26898af9fe3cc5eb9677f75632 (diff)
Merge branch 'mongodb-3.4' into mongodb-3.2mongodb-3.2.18mongodb-3.2.17
Diffstat (limited to 'src/os_common/os_alloc.c')
-rw-r--r--src/os_common/os_alloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os_common/os_alloc.c b/src/os_common/os_alloc.c
index ef96ed09ea7..c54bcc718f2 100644
--- a/src/os_common/os_alloc.c
+++ b/src/os_common/os_alloc.c
@@ -266,6 +266,8 @@ __wt_strndup(WT_SESSION_IMPL *session, const void *str, size_t len, void *retp)
WT_RET(__wt_malloc(session, len + 1, &p));
+ WT_ASSERT(session, p != NULL); /* quiet clang scan-build */
+
/*
* Don't change this to strncpy, we rely on this function to duplicate
* "strings" that contain nul bytes.