]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
rtsp_do: fix DEAD CODE
authorDaniel Stenberg <daniel@haxx.se>
Mon, 15 Jun 2015 07:05:07 +0000 (09:05 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 15 Jun 2015 07:05:07 +0000 (09:05 +0200)
"At condition p_request, the value of p_request cannot be NULL."

Coverity CID 1306668.

lib/rtsp.c

index 5d61c6fe2791e237f9e5dfc9b61b53dabf903a17..e33069a93887ff0181b665625f41f529dbc92954 100644 (file)
@@ -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;
   }