mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
allZero doesn't need to be memset
This commit is contained in:
parent
d85779c12b
commit
86fe3e266b
1 changed files with 3 additions and 2 deletions
|
|
@ -622,9 +622,10 @@ char *GetPrettyRRID(const unsigned char *bin, boolean brief)
|
|||
}
|
||||
|
||||
|
||||
char allZero[PUBKEYLENGTH];
|
||||
static char allZero[PUBKEYLENGTH];
|
||||
|
||||
boolean PR_IsKeyGuest(uint8_t *key)
|
||||
{
|
||||
memset(allZero, 0, PUBKEYLENGTH);
|
||||
//memset(allZero, 0, PUBKEYLENGTH); -- not required, allZero is 0's
|
||||
return (memcmp(key, allZero, PUBKEYLENGTH) == 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue