diff mbox

[6/11] simple_abst : null check for lib

Message ID 9B.C4.05030.7DD0C145@epcpsbgx4.samsung.com (mailing list archive)
State Accepted
Delegated to: Takashi Iwai
Headers show

Commit Message

Renu Tyagi Sept. 19, 2014, 11:04 a.m. UTC
Signed-off-by: renu tyagi <renu.tyagi@samsung.com>

---
 src/mixer/simple_abst.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

--
1.7.1
diff mbox

Patch

diff --git a/src/mixer/simple_abst.c b/src/mixer/simple_abst.c
index 9e9aaf5..5297472 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;