diff --git a/mozilla/xpcom/base/nsTraceRefcnt.cpp b/mozilla/xpcom/base/nsTraceRefcnt.cpp index fe7a773d966..bcec2f49e22 100644 --- a/mozilla/xpcom/base/nsTraceRefcnt.cpp +++ b/mozilla/xpcom/base/nsTraceRefcnt.cpp @@ -628,7 +628,7 @@ static void InitTraceLog(void) } const char* s = getenv("XPCOM_REFCNT_LOG_ENABLE_VIA_PREF"); - if (s && strchr(s, '1') >= 0) { + if (s && strchr(s, '1')) { gEnableViaPref = PR_TRUE; if (gLogging) printf("### XPCOM_REFCNT_LOG_ENABLE_VIA_PREF defined: Logging will be enabled based on the pref selected in the Debug pane\n"); diff --git a/mozilla/xpcom/base/nsTraceRefcntImpl.cpp b/mozilla/xpcom/base/nsTraceRefcntImpl.cpp index fe7a773d966..bcec2f49e22 100644 --- a/mozilla/xpcom/base/nsTraceRefcntImpl.cpp +++ b/mozilla/xpcom/base/nsTraceRefcntImpl.cpp @@ -628,7 +628,7 @@ static void InitTraceLog(void) } const char* s = getenv("XPCOM_REFCNT_LOG_ENABLE_VIA_PREF"); - if (s && strchr(s, '1') >= 0) { + if (s && strchr(s, '1')) { gEnableViaPref = PR_TRUE; if (gLogging) printf("### XPCOM_REFCNT_LOG_ENABLE_VIA_PREF defined: Logging will be enabled based on the pref selected in the Debug pane\n");