From fdcdda2ed331cbb2390e3813ca8b27e53c091271 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 15 May 2014 01:39:42 -0700 Subject: Initialize a pointer to NULL instead of a string --- Alc/backends/pulseaudio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Alc/backends/pulseaudio.c') diff --git a/Alc/backends/pulseaudio.c b/Alc/backends/pulseaudio.c index f71f9ec9..6ea29495 100644 --- a/Alc/backends/pulseaudio.c +++ b/Alc/backends/pulseaudio.c @@ -920,8 +920,8 @@ static ALCboolean ALCpulsePlayback_reset(ALCpulsePlayback *self) { ALCdevice *device = STATIC_CAST(ALCbackend,self)->mDevice; pa_stream_flags_t flags = 0; + const char *mapname = NULL; pa_channel_map chanmap; - const char *mapname; ALuint len; pa_threaded_mainloop_lock(self->loop); @@ -989,7 +989,6 @@ static ALCboolean ALCpulsePlayback_reset(ALCpulsePlayback *self) return ALC_FALSE; } - mapname = "(invalid)"; switch(device->FmtChans) { case DevFmtMono: -- cgit v1.2.3