Commit 7b7d2d98 authored by Philip Withnall's avatar Philip Withnall

agent: Remove unnecessary NULL check

With the changes in commit 483bdcf8, @name is now guaranteed to be
non-NULL. Spotted by Coverity.

CID: #109878
parent 7dc0f281
...@@ -5329,16 +5329,14 @@ nice_agent_set_stream_name (NiceAgent *agent, guint stream_id, ...@@ -5329,16 +5329,14 @@ nice_agent_set_stream_name (NiceAgent *agent, guint stream_id,
agent_lock(); agent_lock();
if (name != NULL) { for (i = agent->streams; i; i = i->next) {
for (i = agent->streams; i; i = i->next) { Stream *stream = i->data;
Stream *stream = i->data;
if (stream->id != stream_id && if (stream->id != stream_id &&
g_strcmp0 (stream->name, name) == 0) g_strcmp0 (stream->name, name) == 0)
goto done; goto done;
else if (stream->id == stream_id) else if (stream->id == stream_id)
stream_to_name = stream; stream_to_name = stream;
}
} }
if (stream_to_name == NULL) if (stream_to_name == NULL)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment