Blame SOURCES/0014-coverity-Remove-check-for-null-pointer-with-no-effec.patch
|
|
91b162 |
From 7cbf5a9b3613985358aad07b6365f6c5cf06a4cf Mon Sep 17 00:00:00 2001
|
|
|
91b162 |
From: Martin Kutlak <mkutlak@redhat.com>
|
|
|
91b162 |
Date: Mon, 20 Aug 2018 16:52:13 +0200
|
|
|
91b162 |
Subject: [PATCH] coverity: Remove check for null pointer with no effect #def33
|
|
|
91b162 |
|
|
|
91b162 |
post_state->errmsg is defined as a char array, NULL is a pointer - these
|
|
|
91b162 |
are incompatible types. Comparing them always evaluates as False.
|
|
|
91b162 |
|
|
|
91b162 |
Signed-off-by: Martin Kutlak <mkutlak@redhat.com>
|
|
|
91b162 |
---
|
|
|
91b162 |
src/lib/ureport.c | 2 +-
|
|
|
91b162 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
91b162 |
|
|
|
91b162 |
diff --git a/src/lib/ureport.c b/src/lib/ureport.c
|
|
|
91b162 |
index c32c948a..ced48108 100644
|
|
|
91b162 |
--- a/src/lib/ureport.c
|
|
|
91b162 |
+++ b/src/lib/ureport.c
|
|
|
91b162 |
@@ -570,7 +570,7 @@ ureport_server_response_from_reply(post_state_t *post_state,
|
|
|
91b162 |
*/
|
|
|
91b162 |
if (post_state->curl_result != CURLE_OK)
|
|
|
91b162 |
{
|
|
|
91b162 |
- if (post_state->errmsg != NULL && strcmp( post_state->errmsg, "") != 0)
|
|
|
91b162 |
+ if (strcmp(post_state->errmsg, "") != 0)
|
|
|
91b162 |
error_msg(_("Failed to upload uReport to the server '%s' with curl: %s"),
|
|
|
91b162 |
config->ur_url,
|
|
|
91b162 |
post_state->errmsg);
|
|
|
91b162 |
--
|
|
|
91b162 |
2.17.1
|
|
|
91b162 |
|