diff options
author | Luigi Scarso <luigi.scarso@gmail.com> | 2019-03-24 00:13:28 +0000 |
---|---|---|
committer | Luigi Scarso <luigi.scarso@gmail.com> | 2019-03-24 00:13:28 +0000 |
commit | 2b72a285e002b9410594cfc2151ba680f827ba2c (patch) | |
tree | f53de3294f1226fda7c5572afe0cb5ba088cdec5 /Build/source/texk/web2c/mplibdir | |
parent | 72d4eb8ca1804ea04cd0d6195ec925ec7aede2cc (diff) |
fixed "<pdfe.reference " number formatter (thanks to M.Krüger); small fix: null -> NULL; mp_xmalloc: use calloc instead of malloc to prevent use of un-initialized memory.
git-svn-id: svn://tug.org/texlive/trunk@50560 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/mplibdir')
-rw-r--r-- | Build/source/texk/web2c/mplibdir/mp.w | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/mplibdir/mp.w b/Build/source/texk/web2c/mplibdir/mp.w index dc3a7e1b879..682fb4e53fc 100644 --- a/Build/source/texk/web2c/mplibdir/mp.w +++ b/Build/source/texk/web2c/mplibdir/mp.w @@ -2948,7 +2948,7 @@ void *mp_xmalloc (MP mp, size_t nmem, size_t size) { mp_jump_out (mp); } #endif - w = malloc (nmem * size); + w = calloc(nmem, size); /* TODO: check an un-initialize use of w and replace calloc with malloc. */ if (w == NULL) { mp_fputs ("Out of memory!\n", mp->err_out); mp->history = mp_system_error_stop; |