[libgdata] tests: Fix incorrect string terminator comparison



commit ece8e887560ef794dba594cefb4c097cd057142c
Author: Philip Withnall <withnall endlessm com>
Date:   Tue Aug 8 21:06:50 2017 +0100

    tests: Fix incorrect string terminator comparison
    
    Spotted by gcc.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 gdata/tests/common.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdata/tests/common.c b/gdata/tests/common.c
index 0815ccf..25d8500 100644
--- a/gdata/tests/common.c
+++ b/gdata/tests/common.c
@@ -882,7 +882,7 @@ output_commented_lines (const gchar *message)
 {
        const gchar *i, *next_newline;
 
-       for (i = message; i != NULL && i != '\0'; i = next_newline) {
+       for (i = message; i != NULL && *i != '\0'; i = next_newline) {
                gchar *line;
 
                next_newline = strchr (i, '\n');


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]