From: Daniel Stenberg Date: Mon, 12 May 2025 07:13:10 +0000 (+0200) Subject: rtsp: remove redundant condition X-Git-Tag: curl-8_14_0~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da06f01ab9a3cde88114f84b6f66aec212a18a12;p=thirdparty%2Fcurl.git rtsp: remove redundant condition 'rtsp' always evaluates to true. Spotted by CodeSonar. Closes #17317 --- diff --git a/lib/rtsp.c b/lib/rtsp.c index f13bd493ad..ac44bec422 100644 --- a/lib/rtsp.c +++ b/lib/rtsp.c @@ -253,7 +253,7 @@ static CURLcode rtsp_done(struct Curl_easy *data, httpStatus = Curl_http_done(data, status, premature); - if(rtsp && !status && !httpStatus) { + if(!status && !httpStatus) { /* Check the sequence numbers */ long CSeq_sent = rtsp->CSeq_sent; long CSeq_recv = rtsp->CSeq_recv;