From cee2cf665fe1ba255f7a382e6ab91d6708b172cb Mon Sep 17 00:00:00 2001 From: Tooru Fujisawa Date: Tue, 26 Apr 2016 08:08:46 +0900 Subject: [PATCH] Bug 1263857 - (followup) Disable windows crash reporter on automated tests. r=sfink --- js/src/shell/js.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/shell/js.cpp b/js/src/shell/js.cpp index 36e65c78ad6f..d839060f9752 100644 --- a/js/src/shell/js.cpp +++ b/js/src/shell/js.cpp @@ -7133,7 +7133,7 @@ PreInit() { #ifdef XP_WIN const char* crash_option = getenv("XRE_NO_WINDOWS_CRASH_DIALOG"); - if (crash_option && strncmp(crash_option, "1", 1)) { + if (crash_option && crash_option[0] == '1') { // Disable the segfault dialog. We want to fail the tests immediately // instead of hanging automation. UINT newMode = SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX;