fix error reporting bug

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2381 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
szabi 2001-10-22 20:22:25 +00:00
parent bbf91d07d2
commit d618193913
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,8 @@ static int read_option(char *opt, char *param)
break;
}
if (i == nr_options) {
printf("invalid option:\n");
if (parser_mode == CONFIG_FILE)
printf("invalid option:\n");
ret = ERR_NOT_AN_OPTION;
goto out;
}