Fix: Dont try to print NULL string (check result of strftimei())

This commit is contained in:
Stas Degteff 2011-02-21 13:06:29 +00:00
parent 56894ccd39
commit bf13c6929a

View File

@ -60,7 +60,8 @@ void update_statuslines() {
{
time32_t t = gtime(NULL);
struct tm tm; glocaltime(&tm, &t);
gsprintf(PRINTF_DECLARE_BUFFER(clkinfo), " %s", strftimei(help, 40, LNG->StatusLineTimeFmt, &tm));
if( strftimei(help, 40, LNG->StatusLineTimeFmt, &tm) )
gsprintf(PRINTF_DECLARE_BUFFER(clkinfo), " %s", help);
}
if(CFG->statuslinehelp == -1)