diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2016-04-26 11:05:43 +0100 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2016-04-27 10:31:51 +0100 |
commit | 0efb1a2a5b49dab22afb2cb9985f6fb155f1db29 (patch) | |
tree | 190ec40e158dc152139b5cea6df6dfa62ccffa9e /base/gsmd5.c | |
parent | 1de3af7338592b108fa01dfed496df3092ed1fa9 (diff) | |
download | ghostpdl-0efb1a2a5b49dab22afb2cb9985f6fb155f1db29.tar.gz |
cppcheck: uninitialized variable in gsmd5.c
In practice, porbably can't happen - simple initialization should resolve the
warning
Diffstat (limited to 'base/gsmd5.c')
-rw-r--r-- | base/gsmd5.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gsmd5.c b/base/gsmd5.c index b7d089abf..453cae665 100644 --- a/base/gsmd5.c +++ b/base/gsmd5.c @@ -138,11 +138,11 @@ gs_md5_process(gs_md5_state_t *pms, const gs_md5_byte_t *data /*[64]*/) gs_md5_word_t t; #if BYTE_ORDER > 0 /* Define storage only for big-endian CPUs. */ - gs_md5_word_t X[16]; + gs_md5_word_t X[16] = {0}; #else /* Define storage for little-endian or both types of CPUs. */ gs_md5_word_t xbuf[16]; - const gs_md5_word_t *X; + const gs_md5_word_t *X = xbuf; #endif { |