diff options
author | Renu Tyagi <renu.tyagi@samsung.com> | 2014-09-23 09:06:28 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-09-23 09:06:28 +0200 |
commit | f3f568e3db5fccdf5cfb7053c04fde6272974faa (patch) | |
tree | 3278b06dd778797d70f7fb4734a762ffc0e55d90 | |
parent | 30f289a8a38006a937ca9189bc666b0bd90cab3c (diff) |
simple_abst: null check for lib
Signed-off-by: renu tyagi <renu.tyagi@samsung.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | src/mixer/simple_abst.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mixer/simple_abst.c b/src/mixer/simple_abst.c index 9e9aaf55..5297472a 100644 --- a/src/mixer/simple_abst.c +++ b/src/mixer/simple_abst.c @@ -70,6 +70,8 @@ static int try_open(snd_mixer_class_t *class, const char *lib) void *h; int err = 0; + if (!lib) + return -ENXIO; path = getenv("ALSA_MIXER_SIMPLE_MODULES"); if (!path) path = SO_PATH; |