simple_abst : null check for lib
PATCH 6/11 simple_abst : null check for lib
Signed-off-by renu tyagi <[email protected]>
--- src/mixer/simple_abst.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
src/mixer/simple_abst.c +2 -0
@@ -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
Signed-off-by renu tyagi <[email protected]>
--- src/mixer/simple_abst.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
src/mixer/simple_abst.c +2 -0
@@ -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 ;
Signature · 1 line
1.7.1