From bb878e4925e50c17b9b4aed5f162599d34fa5616 Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 12 Aug 2010 07:33:27 +0000 Subject: [PATCH] (mfont__init): Initialize buf to NULL. (mfont__id): Likewise. --- src/font.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/font.c b/src/font.c index be4a270..5ebdaa0 100644 --- a/src/font.c +++ b/src/font.c @@ -1154,7 +1154,7 @@ mfont__init () default_encoding.repertory_name = Mnil; default_encoding.repertory_charset = NULL; { - char *path, *buf; + char *path, *buf = NULL; int bufsize; USE_SAFE_ALLOCA; @@ -1219,7 +1219,7 @@ mfont__fini () MSymbol mfont__id (MFont *font) { - char *buf, *p; + char *buf = NULL, *p; int i; int file_len = (font->file == Mnil ? 0 : MSYMBOL_NAMELEN (font->file)); int capability_len = (font->capability == Mnil ? 0 -- 1.7.10.4