]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
rtsp: fix Value stored to 'skip_size' is never read
authorDaniel Stenberg <daniel@haxx.se>
Thu, 30 Mar 2023 21:09:12 +0000 (23:09 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 30 Mar 2023 21:59:26 +0000 (23:59 +0200)
Pointed out by scan-build

Follow-up to 6c6306f3008f2c9b20a64

Closes #10872

lib/rtsp.c

index c503cda427d93600d5249bf577fae46ff2d3ff14..b8965ff15b41254a1cda5638da176f0e688c8544 100644 (file)
@@ -703,7 +703,6 @@ static CURLcode rtsp_rtp_readwrite(struct Curl_easy *data,
           DEBUGF(infof(data, "Skip the malformed interleaved data %lu "
                        "bytes", skip_size));
         }
-        skip_size = 0;
         break; /* maybe is an RTSP message */
       }
       /* Skip incorrect data util the next RTP packet or RTSP message */