aboutsummaryrefslogtreecommitdiff
path: root/ports/podofo/fix-x64-osx.patch
blob: 621f0f68e8e43e4eaa88f0e6e019b07cca62443b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/podofo/base/PdfDate.cpp b/src/podofo/base/PdfDate.cpp
index cefa221..75d80e4 100644
--- a/src/podofo/base/PdfDate.cpp
+++ b/src/podofo/base/PdfDate.cpp
@@ -196,7 +196,7 @@ PdfDate::PdfDate( const PdfString & sDate )
 
     strncpy(m_szDate,sDate.GetString(),PDF_DATE_BUFFER_SIZE);
 
-    struct tm _tm{};
+    struct tm _tm; memset (&_tm, 0, sizeof(struct tm));
     _tm.tm_mday = 1;
 
     const char * pszDate = sDate.GetString();