summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2015-01-17 19:37:28 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2015-01-17 19:37:28 -0800
commitde1843aaf76015c9d99416f3122d169fe331b849 (patch)
treefe2c862d310b6ec8cb0946ba304806c1499a46e6
parentc377d91157601df90936e49167ce28a548c9b740 (diff)
downloadxorg-lib-libfontenc-de1843aaf76015c9d99416f3122d169fe331b849.tar.gz
Initialize aliases array in parseEncodingFile()
The static analyzer insisted there were code paths that entries in this array could be read without them being initialized. While I couldn't see any way that would happen, this makes sure it can't and makes the analyzer quiet. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/encparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encparse.c b/src/encparse.c
index 9521438..f47454a 100644
--- a/src/encparse.c
+++ b/src/encparse.c
@@ -505,7 +505,7 @@ parseEncodingFile(FontFilePtr f, int headerOnly)
FontMapPtr mapping = NULL;
FontEncSimpleMapPtr sm;
FontEncSimpleNamePtr sn;
- char *aliases[MAXALIASES];
+ char *aliases[MAXALIASES] = { NULL };
int numaliases = 0;
#if 0