X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fcommon%2Ftime.c;h=a01c16df5c44f024c00469beeaa014542c658c9f;hb=22a7367148c238daf481e8e6756cdb76a73fd3a0;hp=5519e3ab4715240cfd1b27ef7701d36c1b737039;hpb=2a1135fa25ad1fcad3b395e795aa6d41afc90c54;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; } }