]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected strptime() test, don't use NULL pointer as this crashes under Darwin
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 15 Jun 2007 00:29:54 +0000 (00:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 15 Jun 2007 00:29:54 +0000 (00:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure
configure.in

index f556f13e6e2ce0f3ff97e3388af21476da7b43e4..a92f381984ece0bff90c7f51580d3281d9d473e2 100755 (executable)
--- a/configure
+++ b/configure
@@ -42482,7 +42482,8 @@ else
 
                     int main()
                     {
-                        return !!strptime("", "%x", NULL);
+                        struct tm t;
+                        return !!strptime("", "%x", &t);
                     }
 
 _ACEOF
index 523a3b67e0e6a5e65d91c7bcb272d4f5ad20f91b..c01a9c41b15499cf69037688c2970093261e58f1 100644 (file)
@@ -6134,7 +6134,8 @@ if test "$wxUSE_DATETIME" = "yes"; then
 
                     int main()
                     {
-                        return !!strptime("", "%x", NULL);
+                        struct tm t;
+                        return !!strptime("", "%x", &t);
                     }
                 ],
                 wx_cv_func_strptime_ok=yes,