apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yla...@apache.org
Subject svn commit: r1763667 - /apr/apr/trunk/configure.in
Date Thu, 06 Oct 2016 21:28:22 GMT
Author: ylavic
Date: Thu Oct  6 21:28:22 2016
New Revision: 1763667

URL: http://svn.apache.org/viewvc?rev=1763667&view=rev
Log:
Follow up to r1763665: use correct array initializer.

Modified:
    apr/apr/trunk/configure.in

Modified: apr/apr/trunk/configure.in
URL: http://svn.apache.org/viewvc/apr/apr/trunk/configure.in?rev=1763667&r1=1763666&r2=1763667&view=diff
==============================================================================
--- apr/apr/trunk/configure.in (original)
+++ apr/apr/trunk/configure.in Thu Oct  6 21:28:22 2016
@@ -1963,7 +1963,7 @@ AC_CACHE_CHECK([for memset_s support], [
 
 int main(int argc, const char **argv)
 {
-    char buf[1] = "1";
+    char buf[1] = {1};
     return memset_s(buf, sizeof buf, 0, sizeof buf) != 0 || *buf != '\0';
 }], [apr_cv_memset_s=yes], [apr_cv_memset_s=no], [apr_cv_memset_s=no])])
 
@@ -1982,7 +1982,7 @@ AC_CACHE_CHECK([for explicit_bzero suppo
 
 int main(int argc, const char **argv)
 {
-    char buf[1] = "1";
+    char buf[1] = {1};
     explicit_bzero(buf, sizeof buf);
     return *buf != '\0';
 }], [apr_cv_explicit_bzero=yes], [apr_cv_explicit_bzero=no], [apr_cv_explicit_bzero=no])])



Mime
View raw message