From b8d5a85b0e2b9913a2da0afd6d658bf787b60b3e Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sun, 12 Aug 2018 14:59:08 +0500 Subject: [PATCH] src/Cedar/Client.c: Array compared against NULL is always false found by coverity --- src/Cedar/Client.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Cedar/Client.c b/src/Cedar/Client.c index bc8d1d57..a5508f09 100644 --- a/src/Cedar/Client.c +++ b/src/Cedar/Client.c @@ -8941,14 +8941,8 @@ bool CtSetPassword(CLIENT *c, RPC_CLIENT_PASSWORD *pass) { return false; } - if (pass->Password == NULL) - { - str = ""; - } - else - { - str = pass->Password; - } + + str = pass->Password; if (StrCmp(str, "********") != 0) {