]> git.alsa-project.org Git - alsa-lib.git/commitdiff
simple_abst: null check for lib
authorRenu Tyagi <renu.tyagi@samsung.com>
Tue, 23 Sep 2014 07:06:28 +0000 (09:06 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 Sep 2014 07:06:28 +0000 (09:06 +0200)
Signed-off-by: renu tyagi <renu.tyagi@samsung.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/mixer/simple_abst.c

index 9e9aaf55c535d2b3347a6c40c8efd7984a2d6dc0..5297472a6d26a265442a85dd9972f3dba85114f0 100644 (file)
@@ -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;