Merge branch 'obsd-master'

pull/1/head
Thomas Adam 2015-05-20 10:01:19 +01:00
commit f538f2ae9b
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ format_expand_time(struct format_tree *ft, const char *fmt, time_t t)
size_t tmplen;
struct tm *tm;
if (fmt == NULL)
if (fmt == NULL || *fmt == '\0')
return (xstrdup(""));
tm = localtime(&t);