Commit 38127517 authored by massiot's avatar massiot

* dvblast.c: Check if a config file has been given.


git-svn-id: svn://svn.videolan.org/dvblast/trunk@29 55d3f8b6-4a41-4d2d-a900-313d1436a5b8
parent e5a6880e
...@@ -70,6 +70,12 @@ static void ReadConfiguration( char *psz_file ) ...@@ -70,6 +70,12 @@ static void ReadConfiguration( char *psz_file )
char psz_line[2048]; char psz_line[2048];
int i; int i;
if ( psz_file == NULL )
{
msg_Err( NULL, "no config file" );
return;
}
if ( (p_file = fopen( psz_file, "r" )) == NULL ) if ( (p_file = fopen( psz_file, "r" )) == NULL )
{ {
msg_Err( NULL, "can't fopen config file %s", psz_file ); msg_Err( NULL, "can't fopen config file %s", psz_file );
......
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