From: handa Date: Thu, 12 Aug 2010 07:33:27 +0000 (+0000) Subject: (mfont__init): Initialize buf to NULL. X-Git-Tag: REL-1-6-2~65 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=bb878e4925e50c17b9b4aed5f162599d34fa5616;p=m17n%2Fm17n-lib.git (mfont__init): Initialize buf to NULL. (mfont__id): Likewise. --- 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