diff options
author | Tim Zakian <2895723+tzakian@users.noreply.github.com> | 2019-01-11 17:49:26 (GMT) |
---|---|---|
committer | Tim Zakian <2895723+tzakian@users.noreply.github.com> | 2019-01-11 17:49:26 (GMT) |
commit | c1610690b12407e1cd4470b0ef3908cf78646294 (patch) | |
tree | c8fdd35ca8716f95f312abcc3fe10de55facc8de /programs | |
parent | 416916146f049e8f9fc5c3aa586b5e5e8f784ce5 (diff) | |
download | lz4-c1610690b12407e1cd4470b0ef3908cf78646294.zip lz4-c1610690b12407e1cd4470b0ef3908cf78646294.tar.gz lz4-c1610690b12407e1cd4470b0ef3908cf78646294.tar.bz2 |
Add cast around malloc
Diffstat (limited to 'programs')
-rw-r--r-- | programs/lz4io.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |