mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
sb1: fix buggy comparison
cppcheck reported: [rockbox/utils/imxtools/sbtools/sb1.c:440]: (warning) Comparison of a boolean expression with an integer other than 0 or 1. Thanks to Thomas Jarosch Change-Id: I0078232706d4014a1f2acea310a7a0d0edf7788b
This commit is contained in:
parent
61e322c840
commit
515a07e51d
1 changed files with 1 additions and 1 deletions
|
|
@ -437,7 +437,7 @@ struct sb1_file_t *sb1_read_memory(void *_buf, size_t filesize, void *u,
|
|||
|
||||
for(int i = 0; i < g_nr_keys; i++)
|
||||
{
|
||||
if(!g_key_array[i].method == CRYPTO_XOR_KEY)
|
||||
if(g_key_array[i].method != CRYPTO_XOR_KEY)
|
||||
continue;
|
||||
/* copy key and data because it's modified by the crypto code */
|
||||
memcpy(key, g_key_array[i].u.xor_key, sizeof(key));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue