[alsa-devel] [PATCH 6/11] simple_abst : null check for lib

Renu Tyagi renu.tyagi at samsung.com
Fri Sep 19 13:04:55 CEST 2014


Signed-off-by: renu tyagi <renu.tyagi at samsung.com>
---
 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 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;
--
1.7.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_6.patch
Type: application/octet-stream
Size: 524 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20140919/7781d385/attachment.obj>


More information about the Alsa-devel mailing list