diff options
author | Max Kellermann <max@duempel.org> | 2008-12-25 14:08:59 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-25 14:08:59 +0100 |
commit | 11ab59f9d7b3c247bf7b2fecafde9e60e96ea60f (patch) | |
tree | 64ed5916d71afb3f7c60739617ffacdb928fcbdc /src/conf.c | |
parent | 14d01efabf0e7f44ad7cebf5b3c36262e94e4877 (diff) | |
download | mpd-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.c | 6 |
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; } |