Commit 793ac803 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

choose_mech: fix return code

Coverity CID 1241950. The pointer is never NULL but it might point to
NULL.
parent c2791caf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -564,7 +564,7 @@ static CURLcode choose_mech(struct connectdata *conn)
    break;
  }

  return mech != NULL ? CURLE_OK : CURLE_FAILED_INIT;
  return *mech != NULL ? CURLE_OK : CURLE_FAILED_INIT;
}

CURLcode