fixes initial pulseaudio crash
[Version] 0.1.11
[Issue Type] Crash
Change-Id: I4cc90818733390394a24dc56f61c675e881770e2
Name: audio-hal-wm1831-tw2
Summary: TIZEN Audio HAL for WM1831(TW2)
-Version: 0.1.10
+Version: 0.1.11
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
+}