summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorszabii <szabii@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-09 00:00:57 +0000
committerszabii <szabii@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-09 00:00:57 +0000
commit47c9dcec301120dc30558633ddd1ef5b8d88563a (patch)
treea4f35c5a1fdfbef3b0fc9a2d3b3870903bb1da1e
parente2fac92b095dc46fadbc5a01275d00ca853af6db (diff)
downloadmpv-47c9dcec301120dc30558633ddd1ef5b8d88563a.tar.bz2
mpv-47c9dcec301120dc30558633ddd1ef5b8d88563a.tar.xz
rude fix of ": No such file or directory"
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1063 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--cfgparser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cfgparser.c b/cfgparser.c
index 42f9ee5e77..912fc775da 100644
--- a/cfgparser.c
+++ b/cfgparser.c
@@ -267,12 +267,13 @@ int parse_config_file(struct config *conf, char *conffile)
}
if ((fp = fopen(conffile, "r")) == NULL) {
+ if (!verbose) printf("Reading config file: %s", conffile);
printf(": %s\n", strerror(errno));
free(line);
ret = 0;
goto out;
}
- printf("\n");
+ if (verbose) printf("\n");
while (fgets(line, MAX_LINE_LEN, fp)) {
line_num++;