Skip to content

Commit

Permalink
Fix Compiler warning from LLVM
Browse files Browse the repository at this point in the history
  • Loading branch information
cpiker committed Dec 13, 2023
1 parent fc26ced commit 58cd247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion das2/credentials.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 58cd247

Please sign in to comment.