[libgdata] tests: Remove unnecessary non-NULL test
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] tests: Remove unnecessary non-NULL test
- Date: Sat, 1 Nov 2014 14:28:30 +0000 (UTC)
commit b947511b2027b89bd5104473ffd0c720e784c6b1
Author: Philip Withnall <philip tecnocode co uk>
Date: Sat Nov 1 14:27:59 2014 +0000
tests: Remove unnecessary non-NULL test
It was confusing Coverity.
Coverity issue: #74584
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 14c06f9..9dbd944 100644
--- a/gdata/tests/common.c
+++ b/gdata/tests/common.c
@@ -898,7 +898,7 @@ gdata_test_debug_handler (const gchar *log_domain, GLogLevelFlags log_level, con
output_log_message (message);
/* Log to the trace file. */
- if (message != NULL && (*message == '<' || *message == '>' || *message == ' ') && *(message + 1) == '
') {
+ if ((*message == '<' || *message == '>' || *message == ' ') && *(message + 1) == ' ') {
uhm_server_received_message_chunk (mock_server, message, strlen (message), NULL);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]