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; return n;
} }
]],[[ ]],[[
int i[2]; int i[2]={0,0};
int j = rand(i[0]); int j = rand(i[0]);
if(j) if(j)
return j; return j;