]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
rtsp: remove redundant condition
authorDaniel Stenberg <daniel@haxx.se>
Mon, 12 May 2025 07:13:10 +0000 (09:13 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 12 May 2025 09:03:44 +0000 (11:03 +0200)
'rtsp' always evaluates to true. Spotted by CodeSonar.

Closes #17317

lib/rtsp.c

index f13bd493ad05022c1b688c12cb18486b1f4a4456..ac44bec4222fe10dc94ffd7f4bd005a0c02c2ed6 100644 (file)
@@ -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;