mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
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:
parent
30f289a8a3
commit
f3f568e3db
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue