1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

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.
This commit is contained in:
Daniel Stenberg 2013-09-07 11:12:36 +02:00
parent 0119a93b33
commit 09634f46fb

View File

@ -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;