[Pkg-telepathy-commits] [libnice] 21/265: examples: Remove redundant non-NULL checks

Simon McVittie smcv at debian.org
Wed May 14 12:04:48 UTC 2014


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian
in repository libnice.

commit bb2763883620976b4ca64c9f4c1871c00d82b994
Author: Philip Withnall <philip.withnall at collabora.co.uk>
Date:   Tue Dec 17 09:21:39 2013 +0000

    examples: Remove redundant non-NULL checks
    
    The return value of g_strsplit() can never be NULL.
---
 examples/simple-example.c   | 2 +-
 examples/threaded-example.c | 2 +-
 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;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/libnice.git



More information about the Pkg-telepathy-commits mailing list