alsa-util: make sure we check an initialized cn variable

This commit is contained in:
Marc-André Lureau 2009-02-17 19:35:01 +02:00 committed by Lennart Poettering
parent 7737b10ac6
commit 83cdcf2f53

View file

@ -1,7 +1,7 @@
/*** /***
This file is part of PulseAudio. This file is part of PulseAudio.
Copyright 2004-2006 Lennart Poettering Copyright 2004-2009 Lennart Poettering
Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB
PulseAudio is free software; you can redistribute it and/or modify PulseAudio is free software; you can redistribute it and/or modify
@ -1388,7 +1388,7 @@ void pa_alsa_init_proplist_pcm_info(pa_core *c, pa_proplist *p, snd_pcm_info_t *
snd_pcm_class_t class; snd_pcm_class_t class;
snd_pcm_subclass_t subclass; snd_pcm_subclass_t subclass;
const char *n, *id, *sdn, *cn; const char *n, *id, *sdn, *cn = NULL;
int card; int card;
pa_assert(p); pa_assert(p);