audio: hal and post_proc KW and misc fixes
- KWBUG-811 fixes for NULL check and correct
pointer dereferece in HAL and post_proc
- KWBUG-813, KWBUG-883 fixes for strtok,
strcpy, strncpy strcat, strncat etc.
Conflicts:
hal/audio_extn/utils.c
hal/msm8974/platform.c
post_proc/effect_api.c
Change-Id: I1a9626a7951aa3d54fb2d92a9167e5f92b5f523f
diff --git a/post_proc/effect_api.c b/post_proc/effect_api.c
index e15db17..2fb79ed 100644
--- a/post_proc/effect_api.c
+++ b/post_proc/effect_api.c
@@ -110,11 +110,11 @@
*mixer = mixer_open(card);
if (!(*mixer)) {
ALOGE("Failed to open mixer");
- ctl = NULL;
+ *ctl = NULL;
return -EINVAL;
} else {
*ctl = mixer_get_ctl_by_name(*mixer, mixer_string);
- if (!(*ctl)) {
+ if (!*ctl) {
ALOGE("mixer_get_ctl_by_name failed");
mixer_close(*mixer);
*mixer = NULL;