From: Daniel Stenberg Date: Mon, 15 Jun 2015 07:05:07 +0000 (+0200) Subject: rtsp_do: fix DEAD CODE X-Git-Tag: curl-7_43_0~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b430cb2a588b4a1912378b044c47341f1abefc49;p=thirdparty%2Fcurl.git rtsp_do: fix DEAD CODE "At condition p_request, the value of p_request cannot be NULL." Coverity CID 1306668. --- diff --git a/lib/rtsp.c b/lib/rtsp.c index 5d61c6fe27..e33069a938 100644 --- a/lib/rtsp.c +++ b/lib/rtsp.c @@ -322,7 +322,7 @@ static CURLcode rtsp_do(struct connectdata *conn, bool *done) if(!p_session_id && (rtspreq & ~(RTSPREQ_OPTIONS | RTSPREQ_DESCRIBE | RTSPREQ_SETUP))) { failf(data, "Refusing to issue an RTSP request [%s] without a session ID.", - p_request ? p_request : ""); + p_request); return CURLE_BAD_FUNCTION_ARGUMENT; }