Commit c439e7b0 authored by Manuel Pégourié-Gonnard's avatar Manuel Pégourié-Gonnard
Browse files

Minor portability fix in benchmark

On embedded systems, argc might be 0 rather than 1 for no argument.
parent 02ba5785
......@@ -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 ) );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment