aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-05-15 01:39:42 -0700
committerChris Robinson <[email protected]>2014-05-15 01:39:42 -0700
commitfdcdda2ed331cbb2390e3813ca8b27e53c091271 (patch)
tree437c86921be55fc4ce57acd3a7151199dc1d5d76 /Alc
parent028bd9767cdc6099cef7cad78b8512761dd88b69 (diff)
Initialize a pointer to NULL instead of a string
Diffstat (limited to 'Alc')
-rw-r--r--Alc/backends/pulseaudio.c3
1 files changed, 1 insertions, 2 deletions
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: