diff options
author | Daniel Stenberg <daniel@haxx.se> | 2013-09-07 11:12:36 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-09-07 11:15:18 +0200 |
commit | 09634f46fb98f02890e4f1bffb99bf4d76d6cf85 (patch) | |
tree | 7fb74f256931b1b3e350a9936c65dc244756d4e4 | |
parent | 0119a93b335dfc7f58304a6c92f114c4f655b5a3 (diff) |
configure: improve CURL_CHECK_COMPILER_PROTOTYPE_MISMATCH
The compiler test used a variable before it was assigned when it tried
to see how it acts on a mismatching prototype, which could cause a false
positive.
-rw-r--r-- | m4/curl-compilers.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4 index 2467128eb..59135ef3d 100644 --- a/m4/curl-compilers.m4 +++ b/m4/curl-compilers.m4 @@ -1479,7 +1479,7 @@ AC_DEFUN([CURL_CHECK_COMPILER_PROTOTYPE_MISMATCH], [ return n; } ]],[[ - int i[2]; + int i[2]={0,0}; int j = rand(i[0]); if(j) return j; |