summaryrefslogtreecommitdiff
path: root/tizen-audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'tizen-audio.c')
-rw-r--r--tizen-audio.c4
1 files changed, 2 insertions, 2 deletions
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
+}