summaryrefslogtreecommitdiffstats
path: root/apps/talk.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/talk.c')
-rw-r--r--apps/talk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/talk.c b/apps/talk.c
index 8a428d1ed8..551d9672bc 100644
--- a/apps/talk.c
+++ b/apps/talk.c
@@ -625,8 +625,10 @@ static bool load_voicefile_data(int fd)
metadata_alloc_size = max_clips * sizeof(struct clip_cache_metadata);
metadata_table_handle = buflib_alloc(&clip_ctx, metadata_alloc_size);
if (metadata_table_handle <= 0)
+ {
talk_status = TALK_STATUS_ERR_OOM;
return false;
+ }
memset(buflib_get_data(&clip_ctx, metadata_table_handle), 0, metadata_alloc_size);
load_initial_clips(fd);