From c1610690b12407e1cd4470b0ef3908cf78646294 Mon Sep 17 00:00:00 2001 From: Tim Zakian <2895723+tzakian@users.noreply.github.com> Date: Fri, 11 Jan 2019 09:49:26 -0800 Subject: Add cast around malloc --- programs/lz4io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/lz4io.c b/programs/lz4io.c index 2eeb154..6bb6c48 100644 --- a/programs/lz4io.c +++ b/programs/lz4io.c @@ -157,7 +157,7 @@ struct LZ4IO_prefs_s { LZ4IO_prefs_t* LZ4IO_defaultPreferences(void) { - LZ4IO_prefs_t* const ret = malloc(sizeof(LZ4IO_prefs_t)); + LZ4IO_prefs_t* const ret = (LZ4IO_prefs_t*)malloc(sizeof(LZ4IO_prefs_t)); if (!ret) EXM_THROW(21, "Allocation error : not enough memory"); ret->passThrough = 0; ret->overwrite = 1; -- cgit v0.12