fixes initial pulseaudio crash
[Version] 0.1.3
[Issue Type] Crash
Change-Id: I9e7010e998c43bf97854ad3641cfef02615b4bdd
Name: audio-hal-exynos9110
Summary: TIZEN Audio HAL for Exynos9110(TW3)
-Version: 0.1.2
+Version: 0.1.3
Release: 0
Group: System/Libraries
License: Apache-2.0
AUDIO_RETURN_VAL_IF_FAIL(audio_handle, AUDIO_ERR_PARAMETER);
- if (!(ah = malloc(sizeof(audio_hal_t)))) {
+ if (!(ah = calloc(1, sizeof(audio_hal_t)))) {
AUDIO_LOG_ERROR("failed to malloc()");
return AUDIO_ERR_RESOURCE;
}
ah = NULL;
return AUDIO_RET_OK;
-}
\ No newline at end of file
+}