X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ftime.c;h=a01c16df5c44f024c00469beeaa014542c658c9f;hp=5519e3ab4715240cfd1b27ef7701d36c1b737039;hb=0731b11e5e0022379ca462b574743197c48cfa25;hpb=5430c50db082463051ecf8a1327356c998885172 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; } }