summaryrefslogtreecommitdiff
path: root/src/core/wee-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/wee-util.c')
-rw-r--r--src/core/wee-util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/wee-util.c b/src/core/wee-util.c
index bbffd7dcf..4d3a9a5e0 100644
--- a/src/core/wee-util.c
+++ b/src/core/wee-util.c
@@ -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;