Skip to content
Snippets Groups Projects
Commit 13031c04 authored by cnlohr's avatar cnlohr
Browse files

Fix crash on no-paraeters.

parent 24a8d2bb
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ void * MiniCHLinkInitAsDLL( struct MiniChlinkFunctions ** MCFO )
#if !defined( MINICHLINK_AS_LIBRARY ) && !defined( MINICHLINK_IMPORT )
int main( int argc, char ** argv )
{
if (argv[1][0] == '-' && argv[1][1] == 'h')
if( argc > 1 && argv[1][0] == '-' && argv[1][1] == 'h' )
{
goto help;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment