aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/audioOutputs/audioOutput_shout.c5
-rw-r--r--src/listen.c6
-rw-r--r--src/state_file.c1
3 files changed, 6 insertions, 6 deletions
diff --git a/src/audioOutputs/audioOutput_shout.c b/src/audioOutputs/audioOutput_shout.c
index 25966d172..7d93f8f85 100644
--- a/src/audioOutputs/audioOutput_shout.c
+++ b/src/audioOutputs/audioOutput_shout.c
@@ -117,7 +117,7 @@ static int myShout_initDriver(AudioOutput * audioOutput, ConfigParam * param)
char *user;
char *name;
BlockParam *blockParam;
- unsigned int public;
+ unsigned int public = 0;
sd = newShoutData();
@@ -157,8 +157,7 @@ static int myShout_initDriver(AudioOutput * audioOutput, ConfigParam * param)
FATAL("public \"%s\" is not \"yes\" or \"no\" at line "
"%i\n", param->value, param->line);
}
- } else
- public = 0;
+ }
blockParam = getBlockParam(param, "user");
if (blockParam)
diff --git a/src/listen.c b/src/listen.c
index d2e7cf5a0..323bf430f 100644
--- a/src/listen.c
+++ b/src/listen.c
@@ -53,7 +53,7 @@ static int boundPort;
static int establishListen(unsigned int port,
struct sockaddr *addrp, socklen_t addrlen)
{
- int pf;
+ int pf = 0;
int sock;
int allowReuse = ALLOW_REUSE;
@@ -105,8 +105,8 @@ static int establishListen(unsigned int port,
static void parseListenConfigParam(unsigned int port, ConfigParam * param)
{
- struct sockaddr *addrp;
- socklen_t addrlen;
+ struct sockaddr *addrp = NULL;
+ socklen_t addrlen = 0;
struct sockaddr_in sin;
#ifdef HAVE_IPV6
struct sockaddr_in6 sin6;
diff --git a/src/state_file.c b/src/state_file.c
index 1b0b41f1a..ac2fcde7a 100644
--- a/src/state_file.c
+++ b/src/state_file.c
@@ -106,5 +106,6 @@ void read_state_file(void)
void mpd_noreturn state_file_fatal(void)
{
FATAL("error parsing state file \"%s\"\n", sfpath);
+ exit(EXIT_FAILURE);
}