mirror of https://github.com/mpv-player/mpv
fix again
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1078 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ae7f876236
commit
823dfcfc39
|
@ -30,8 +30,6 @@
|
|||
|
||||
#include "cfgparser.h"
|
||||
|
||||
extern int verbose;
|
||||
|
||||
static struct config *config;
|
||||
static int nr_options; /* number of options in 'conf' */
|
||||
static int parser_mode; /* COMMAND_LINE or CONFIG_FILE */
|
||||
|
@ -253,8 +251,6 @@ int parse_config_file(struct config *conf, char *conffile)
|
|||
return -1;
|
||||
}
|
||||
|
||||
// printf("Reading config file: %s", conffile);
|
||||
|
||||
if (init_conf(conf, CONFIG_FILE) == -1) {
|
||||
ret = -1;
|
||||
goto out;
|
||||
|
@ -267,12 +263,10 @@ int parse_config_file(struct config *conf, char *conffile)
|
|||
}
|
||||
|
||||
if ((fp = fopen(conffile, "r")) == NULL) {
|
||||
// printf(": %s\n", strerror(errno));
|
||||
free(line);
|
||||
ret = 0;
|
||||
goto out;
|
||||
}
|
||||
// printf("\n");
|
||||
|
||||
while (fgets(line, MAX_LINE_LEN, fp)) {
|
||||
line_num++;
|
||||
|
|
Loading…
Reference in New Issue