Commit bb276388 authored by Philip Withnall's avatar Philip Withnall Committed by Olivier Crête

examples: Remove redundant non-NULL checks

The return value of g_strsplit() can never be NULL.
parent 332c9c5b
......@@ -288,7 +288,7 @@ parse_candidate(char *scand, guint _stream_id)
guint i;
tokens = g_strsplit (scand, ",", 5);
for (i = 0; tokens && tokens[i]; i++);
for (i = 0; tokens[i]; i++);
if (i != 5)
goto end;
......
......@@ -311,7 +311,7 @@ parse_candidate(char *scand, guint stream_id)
guint i;
tokens = g_strsplit (scand, ",", 5);
for (i = 0; tokens && tokens[i]; i++);
for (i = 0; tokens[i]; i++);
if (i != 5)
goto end;
......
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