diff options
| author | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2007-10-18 12:26:11 +0000 |
|---|---|---|
| committer | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2007-10-18 12:26:11 +0000 |
| commit | 9e114bcaa47194a9f6af8eadf6d7cb9bb1ec277f (patch) | |
| tree | 8ddf614d9b481254e15a4ea9088f83d6f1534734 /libopenjpeg/jp2.c | |
| parent | 5fdc05d18d4831ead22948950ba279fadfc6b71d (diff) | |
Patch from Callum Lewick. Memset patch. See ChangeLog for more details. Thanks Callum !
Diffstat (limited to 'libopenjpeg/jp2.c')
| -rw-r--r-- | libopenjpeg/jp2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopenjpeg/jp2.c b/libopenjpeg/jp2.c index 92abf2e1..14f9493c 100644 --- a/libopenjpeg/jp2.c +++ b/libopenjpeg/jp2.c @@ -507,7 +507,7 @@ static bool jp2_read_struct(opj_jp2_t *jp2, opj_cio_t *cio) { /* ----------------------------------------------------------------------- */ opj_jp2_t* jp2_create_decompress(opj_common_ptr cinfo) { - opj_jp2_t *jp2 = (opj_jp2_t*)opj_malloc(sizeof(opj_jp2_t)); + opj_jp2_t *jp2 = (opj_jp2_t*) opj_calloc(1, sizeof(opj_jp2_t)); if(jp2) { jp2->cinfo = cinfo; /* create the J2K codec */ |
