]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datetime.cpp
fixed pagebreaks computation in tables (#9935, patch by D.J.Stauffer)
[wxWidgets.git] / src / common / datetime.cpp
index f6ad3f6259ab5fd94d548c220cdf7d9029b301f6..8bd4933a187b83f9ecbb48717bdfa58ebd455e54 100644 (file)
@@ -487,8 +487,10 @@ static wxString CallStrftime(const wxString& format, const tm* tm)
 
     if ( !wxStrftime(buf, WXSIZEOF(buf), format, tm) )
     {
-        // buffer is too small?
+        // if the format is valid, buffer must be too small?
         wxFAIL_MSG(_T("strftime() failed"));
+
+        buf[0] = '\0';
     }
 
     s = buf;