diff options
Diffstat (limited to 'src/mongo/shell/utils.js')
-rw-r--r-- | src/mongo/shell/utils.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/shell/utils.js b/src/mongo/shell/utils.js index 225eba959bd..a7c9fe4c9a8 100644 --- a/src/mongo/shell/utils.js +++ b/src/mongo/shell/utils.js @@ -158,7 +158,7 @@ if (typeof TestData == "undefined") { function __sanitizeMatch(flag) { var sanitizeMatch = /-fsanitize=([^\s]+) /.exec(getBuildInfo()["buildEnvironment"]["ccflags"]); - if (flag && RegExp(flag).exec(sanitizeMatch[1])) { + if (flag && sanitizeMatch && RegExp(flag).exec(sanitizeMatch[1])) { return true; } else { return false; |