mirror of
https://github.com/curl/curl.git
synced 2026-08-25 06:03:32 +03:00
tidy-up: drop stray comparisons with literal zero
Drop from: - strcmp, strcmpi, strncmp, memcmp, lstat, getrlimit, setrlimit, fseek, fstat - autotools detection snippets. - smooth-gtk-thread: simplify `!var != 0` expression. Closes #21947
This commit is contained in:
parent
2f3fa479dd
commit
97aed9c960
43 changed files with 142 additions and 143 deletions
|
|
@ -658,7 +658,7 @@ static CURLcode rtsp_filter_rtp(struct Curl_easy *data,
|
|||
while(blen && buf[0] != '$') {
|
||||
if(!in_body && buf[0] == 'R' &&
|
||||
data->set.rtspreq != RTSPREQ_RECEIVE) {
|
||||
if(strncmp(buf, "RTSP/", (blen < 5) ? blen : 5) == 0) {
|
||||
if(!strncmp(buf, "RTSP/", (blen < 5) ? blen : 5)) {
|
||||
/* This could be the next response, no consume and return */
|
||||
if(*pconsumed) {
|
||||
DEBUGF(infof(data, "RTP rtsp_filter_rtp[SKIP] RTSP/ prefix, "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue