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:
+4
-3
@@ -1016,9 +1016,10 @@ gui_chat_hsignal_quote_line_cb (const void *pointer, void *data,
|
||||
local_time = localtime (&line_date);
|
||||
if (local_time)
|
||||
{
|
||||
strftime (str_time, sizeof (str_time),
|
||||
CONFIG_STRING(config_look_quote_time_format),
|
||||
local_time);
|
||||
if (strftime (str_time, sizeof (str_time),
|
||||
CONFIG_STRING(config_look_quote_time_format),
|
||||
local_time) == 0)
|
||||
str_time[0] = '\0';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user