X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fcommon%2Ftime.c;h=a01c16df5c44f024c00469beeaa014542c658c9f;hb=73b4e79ff411b40a1461f9b9fe093cd53115fc6c;hp=5519e3ab4715240cfd1b27ef7701d36c1b737039;hpb=10945cfa2113127cb5baa7a61e799d01252250ff;p=lttng-tools.git diff --git a/src/common/time.c b/src/common/time.c index 5519e3ab4..a01c16df5 100644 --- a/src/common/time.c +++ b/src/common/time.c @@ -76,7 +76,7 @@ void __attribute__((constructor)) init_locale_utf8_support(void) if (program_locale && strstr(program_locale, "utf8")) { utf8_output_supported = true; - } else if (strstr(lang, "utf8")) { + } else if (lang && strstr(lang, "utf8")) { utf8_output_supported = true; } }