summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungbae Shin <seungbae.shin@samsung.com>2019-09-30 16:09:02 +0900
committerSeungbae Shin <seungbae.shin@samsung.com>2019-09-30 16:09:02 +0900
commit5ddb56a79229344a628ca8d3af7d213cbd414301 (patch)
treea9c1ac7bc55e20cd5ddb42972d17e0befa293e91
parent190626b5c11a1413a8f3182d91acde2fb85799b2 (diff)
downloadaudio-hal-wm1831-tw2-accepted/tizen_5.5_unified_mobile_hotfix.tar.gz
audio-hal-wm1831-tw2-accepted/tizen_5.5_unified_mobile_hotfix.tar.bz2
audio-hal-wm1831-tw2-accepted/tizen_5.5_unified_mobile_hotfix.zip
fixes initial pulseaudio crash [Version] 0.1.11 [Issue Type] Crash Change-Id: I4cc90818733390394a24dc56f61c675e881770e2
-rw-r--r--packaging/audio-hal-wm1831-tw2.spec2
-rw-r--r--tizen-audio.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/packaging/audio-hal-wm1831-tw2.spec b/packaging/audio-hal-wm1831-tw2.spec
index 7236336..2e82c2b 100644
--- a/packaging/audio-hal-wm1831-tw2.spec
+++ b/packaging/audio-hal-wm1831-tw2.spec
@@ -1,6 +1,6 @@
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
diff --git a/tizen-audio.c b/tizen-audio.c
index c587ee0..07f6f97 100644
--- a/tizen-audio.c
+++ b/tizen-audio.c
@@ -30,7 +30,7 @@ audio_return_t audio_init(void **audio_handle)
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;
}
@@ -87,4 +87,4 @@ audio_return_t audio_deinit(void *audio_handle)
ah = NULL;
return AUDIO_RET_OK;
-} \ No newline at end of file
+}