Commit 7d9fc126 authored by massiot's avatar massiot

* dvblast.c: Fix segfault when no input option is passed.


git-svn-id: svn://svn.videolan.org/dvblast/trunk@97 55d3f8b6-4a41-4d2d-a900-313d1436a5b8
parent 8f8889a7
...@@ -608,7 +608,7 @@ int main( int i_argc, char **pp_argv ) ...@@ -608,7 +608,7 @@ int main( int i_argc, char **pp_argv )
usage(); usage();
} }
} }
if ( optind < i_argc ) if ( optind < i_argc || pf_Open == NULL )
usage(); usage();
msg_Warn( NULL, "restarting" ); msg_Warn( NULL, "restarting" );
......
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