From de1843aaf76015c9d99416f3122d169fe331b849 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 17 Jan 2015 19:37:28 -0800 Subject: 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 --- src/encparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1