mirror of
https://github.com/weechat/weechat.git
synced 2026-07-08 10:43:13 +02:00
core, plugins: check return code of strftime function
This commit is contained in:
+3
-2
@@ -316,8 +316,9 @@ util_get_time_string (const time_t *date)
|
||||
local_time = localtime (date);
|
||||
if (local_time)
|
||||
{
|
||||
strftime (text_time, sizeof (text_time),
|
||||
CONFIG_STRING(config_look_time_format), local_time);
|
||||
if (strftime (text_time, sizeof (text_time),
|
||||
CONFIG_STRING(config_look_time_format), local_time) == 0)
|
||||
text_time[0] = '\0';
|
||||
}
|
||||
|
||||
return text_time;
|
||||
|
||||
Reference in New Issue
Block a user