summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2013-12-17 09:21:39 +0000
committerOlivier CrĂȘte <olivier.crete@collabora.com>2013-12-18 17:49:36 -0500
commitbb2763883620976b4ca64c9f4c1871c00d82b994 (patch)
tree6228bac82c9f670f1071f5fbb09271176b81a093
parent332c9c5b329426f2d255e9eaf856aa79fe813a77 (diff)
downloadlibnice-bb2763883620976b4ca64c9f4c1871c00d82b994.tar.gz
examples: Remove redundant non-NULL checks
The return value of g_strsplit() can never be NULL.
-rw-r--r--examples/simple-example.c2
-rw-r--r--examples/threaded-example.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/simple-example.c b/examples/simple-example.c
index e02654d..5cf5913 100644
--- a/examples/simple-example.c
+++ b/examples/simple-example.c
@@ -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;
diff --git a/examples/threaded-example.c b/examples/threaded-example.c
index d4513bc..c4da9fe 100644
--- a/examples/threaded-example.c
+++ b/examples/threaded-example.c
@@ -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;