mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 03:55:39 +01:00
Minor portability fix in benchmark
On embedded systems, argc might be 0 rather than 1 for no argument.
This commit is contained in:
parent
02ba5785bf
commit
c439e7b099
@ -255,8 +255,10 @@ int main( int argc, char *argv[] )
|
||||
unsigned char malloc_buf[HEAP_SIZE] = { 0 };
|
||||
#endif
|
||||
|
||||
if( argc == 1 )
|
||||
if( argc <= 1 )
|
||||
{
|
||||
memset( &todo, 1, sizeof( todo ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
memset( &todo, 0, sizeof( todo ) );
|
||||
|
Loading…
Reference in New Issue
Block a user