aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2005-03-09 03:45:30 +0000
committerWarren Dukes <warren.dukes@gmail.com>2005-03-09 03:45:30 +0000
commit384ecd09c1e9eb4243b8f5bc4bdeeb117057c44e (patch)
treed98d80c22f8e7c07d3a2ab4bf9231c2d15743585 /src
parent5f8bf2b4bbf5440be42344917289326db40583a5 (diff)
downloadmpd-384ecd09c1e9eb4243b8f5bc4bdeeb117057c44e.tar.gz
mpd-384ecd09c1e9eb4243b8f5bc4bdeeb117057c44e.tar.xz
mpd-384ecd09c1e9eb4243b8f5bc4bdeeb117057c44e.zip
fix segfault in error message
git-svn-id: https://svn.musicpd.org/mpd/trunk@3046 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index d59eed57d..11ad00efd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -384,7 +384,7 @@ void cleanUpPidFile() {
unlink(pidFileParam->value);
}
-void killMpdFromPidFile(char * cmd, int killOption) {
+void killFromPidFile(char * cmd, int killOption) {
struct stat st_cmd;
struct stat st_exe;
ConfigParam * pidFileParam = parseConfigFilePath(CONF_PID_FILE, 1);
@@ -395,7 +395,7 @@ void killMpdFromPidFile(char * cmd, int killOption) {
if(!fp) {
ERROR("unable to open %s \"%s\": %s\n",
CONF_PID_FILE, pidFileParam->value,
- pidFileParam->line, strerror(errno));
+ strerror(errno));
exit(EXIT_FAILURE);
}
if(fscanf(fp, "%i", &pid) != 1) {
@@ -450,7 +450,7 @@ int main(int argc, char * argv[]) {
parseOptions(argc, argv, &options);
- if(options.kill) killMpdFromPidFile(argv[0], options.kill);
+ if(options.kill) killFromPidFile(argv[0], options.kill);
initStats();
initTagConfig();