From: Tim Zakian <2895723+tzakian@users.noreply.github.com> Date: Fri, 11 Jan 2019 17:49:26 +0000 (-0800) Subject: Add cast around malloc X-Git-Tag: upstream/1.9.3~5^2~30^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1610690b12407e1cd4470b0ef3908cf78646294;p=platform%2Fupstream%2Flz4.git Add cast around malloc --- 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;