Commit 09634f46 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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.
parent 0119a93b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;