mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 09:29:52 +03:00
cleanup redundant check found by Coverity
CID 287561 (#1 of 1): Array compared against 0 (NO_EFFECT)array_null: Comparing an array to null is not useful: src == NULL, since the test will always evaluate as true. Was src formerly declared as a pointer? 3748 if (cedar == NULL || src == NULL || dst == NULL) 3749 { 3750 return false; 3751 }
This commit is contained in:
parent
e5cfa347da
commit
a08857150b
@ -3745,7 +3745,7 @@ bool PPPParseUsername(CEDAR *cedar, char *src_username, ETHERIP_ID *dst)
|
||||
char src[MAX_SIZE];
|
||||
// Validate arguments
|
||||
Zero(dst, sizeof(ETHERIP_ID));
|
||||
if (cedar == NULL || src == NULL || dst == NULL)
|
||||
if (cedar == NULL || dst == NULL)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user