From 58cd24737bbddfcbe68f8b7c788c913d35773e33 Mon Sep 17 00:00:00 2001 From: cpiker Date: Tue, 12 Dec 2023 23:33:33 -0600 Subject: [PATCH] Fix Compiler warning from LLVM --- das2/credentials.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/das2/credentials.c b/das2/credentials.c index c99735b..69cd527 100644 --- a/das2/credentials.c +++ b/das2/credentials.c @@ -546,7 +546,7 @@ int CredMngr_load(DasCredMngr* pThis, const char* sSymKey, const char* sFile) DasAry_append(pThis->pCreds, (const byte*)pNew, 1); // append always copies } else{ - if(pOld->sHash && (strcmp(pOld->sHash, pNew->sHash) != 0)) + if(strcmp(pOld->sHash, pNew->sHash) != 0) memcpy(pOld->sHash, pNew->sHash, DASCRED_HASH_SZ); else --nCreds;