simple_abst: null check for lib

Signed-off-by: renu tyagi <renu.tyagi@samsung.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Renu Tyagi 2014-09-23 09:06:28 +02:00 committed by Takashi Iwai
parent 30f289a8a3
commit f3f568e3db

View file

@ -70,6 +70,8 @@ static int try_open(snd_mixer_class_t *class, const char *lib)
void *h; void *h;
int err = 0; int err = 0;
if (!lib)
return -ENXIO;
path = getenv("ALSA_MIXER_SIMPLE_MODULES"); path = getenv("ALSA_MIXER_SIMPLE_MODULES");
if (!path) if (!path)
path = SO_PATH; path = SO_PATH;