[libgdata] tests: Fix incorrect string terminator comparison
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] tests: Fix incorrect string terminator comparison
- Date: Tue, 8 Aug 2017 20:12:01 +0000 (UTC)
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]