Blame SOURCES/0014-coverity-Remove-check-for-null-pointer-with-no-effec.patch

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