mirror of
https://github.com/deadw00d/AROS.git
synced 2025-12-07 05:53:26 +00:00
codacy fix: Invalid memcmp() argument nr 3. A non-boolean value is required.
This commit is contained in:
committed by
deadwood
parent
3d33c45287
commit
881dead369
@ -34,7 +34,7 @@ static int test_eap_sim_prf(void)
|
||||
|
||||
printf("Testing EAP-SIM PRF (FIPS 186-2 + change notice 1)\n");
|
||||
eap_sim_prf(xkey, buf, sizeof(buf));
|
||||
if (memcmp(w, buf, sizeof(w) != 0)) {
|
||||
if (memcmp(w, buf, (sizeof(w) != 0) ? 1 : 0)) {
|
||||
printf("eap_sim_prf failed\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user