aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutputs/audioOutput_shout.c
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-05-26 18:20:53 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-05-26 18:20:53 +0000
commit93e68adc79e5b8cc534656d848ee15932b3321bf (patch)
treeb1a939c3b184cda029f49c1903d80e7b73054a57 /src/audioOutputs/audioOutput_shout.c
parentbba444524eca700970f69261bc470fb01a138222 (diff)
downloadmpd-93e68adc79e5b8cc534656d848ee15932b3321bf.tar.gz
mpd-93e68adc79e5b8cc534656d848ee15932b3321bf.tar.xz
mpd-93e68adc79e5b8cc534656d848ee15932b3321bf.zip
After changing ERROR();exit() to FATAL(), gcc incorrectly detects some
uninitialized variables and non-returning functions that return. Let's tell it to stfu. git-svn-id: https://svn.musicpd.org/mpd/trunk@6277 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/audioOutputs/audioOutput_shout.c5
1 files changed, 2 insertions, 3 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)