aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-25 14:08:59 +0100
committerMax Kellermann <max@duempel.org>2008-12-25 14:08:59 +0100
commit11ab59f9d7b3c247bf7b2fecafde9e60e96ea60f (patch)
tree64ed5916d71afb3f7c60739617ffacdb928fcbdc /src/conf.c
parent14d01efabf0e7f44ad7cebf5b3c36262e94e4877 (diff)
downloadmpd-11ab59f9d7b3c247bf7b2fecafde9e60e96ea60f.tar.gz
mpd-11ab59f9d7b3c247bf7b2fecafde9e60e96ea60f.tar.xz
mpd-11ab59f9d7b3c247bf7b2fecafde9e60e96ea60f.zip
conf: don't free filename in read_rc_file()
The code was unused, because free_filename was always 0.
Diffstat (limited to 'src/conf.c')
-rw-r--r--src/conf.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/conf.c b/src/conf.c
index 4a8bf503c..979fd91c4 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -504,15 +504,12 @@ read_rc_file(char *filename)
{
int fd;
int quit = 0;
- int free_filename = 0;
if (filename == NULL)
return -1;
if ((fd = open(filename,O_RDONLY)) < 0) {
perror(filename);
- if (free_filename)
- g_free(filename);
return -1;
}
@@ -554,9 +551,6 @@ read_rc_file(char *filename)
}
}
- if (free_filename)
- g_free(filename);
-
return 0;
}