diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2022-02-17 09:44:17 +0000 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2022-02-17 11:26:06 +0000 |
commit | 71241b52be51bc75e06ad2dea8a6d025390158af (patch) | |
tree | 9e352c06e3820115d1ebf5eaada874c059b86de9 /pcl | |
parent | 6a54b8bd762e14767bd75209043a67be29548565 (diff) | |
download | ghostpdl-71241b52be51bc75e06ad2dea8a6d025390158af.tar.gz |
Coverity 375727: initialise stack variable
In the case where it matters, we wouldn't hit it without being initialised,
but Coverity can't know that, and the cost to initialise it is tiny.
Diffstat (limited to 'pcl')
-rw-r--r-- | pcl/pl/pllfont.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pcl/pl/pllfont.c b/pcl/pl/pllfont.c index ad38b2fa1..eb63f4498 100644 --- a/pcl/pl/pllfont.c +++ b/pcl/pl/pllfont.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2001-2021 Artifex Software, Inc. +/* Copyright (C) 2001-2022 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or @@ -358,6 +358,7 @@ pl_load_ufst_lineprinter(gs_memory_t * mem, pl_dict_t * pfontdict, return 0; } + static int pl_load_built_in_mtype_fonts(const char *pathname, gs_memory_t * mem, pl_dict_t * pfontdict, gs_font_dir * pdir, @@ -366,7 +367,7 @@ pl_load_built_in_mtype_fonts(const char *pathname, gs_memory_t * mem, int i, k; short status = 0; int bSize; - byte key[3]; + byte key[3] = {0}; char pthnm[1024]; char *ufst_root_dir; char *fco; |