From: Dan Nicolaescu <dann@ics.uci.edu>
To: emacs-devel@gnu.org
Subject: Problem report #127: base/src/emacs/src/ftfont.c (ftfont_list_family); UNINIT
Date: Tue, 02 Dec 2008 17:04:40 -0800 [thread overview]
Message-ID: <200812030120.mB31KMko022808@mothra.ics.uci.edu> (raw)
CID: 127
Checker: UNINIT (help)
File: base/src/emacs/src/ftfont.c
Function: ftfont_list_family
Description: Using uninitialized value "list"
Event var_decl: Declared variable "list" without initializer
Also see events: [uninit_use]
973 Lisp_Object list;
974 FcPattern *pattern = NULL;
975 FcFontSet *fontset = NULL;
976 FcObjectSet *objset = NULL;
977 int i;
978
At conditional (1): "fc_initialized == 0" taking true path
979 if (! fc_initialized)
980 {
981 FcInit ();
982 fc_initialized = 1;
983 }
984
985 pattern = FcPatternCreate ();
At conditional (2): "pattern == 0" taking true path
986 if (! pattern)
987 goto finish;
988 objset = FcObjectSetBuild (FC_FAMILY, NULL);
989 if (! objset)
990 goto finish;
991 fontset = FcFontList (NULL, pattern, objset);
992 if (! fontset)
993 goto finish;
994
995 list = Qnil;
996 for (i = 0; i < fontset->nfont; i++)
997 {
998 FcPattern *pat = fontset->fonts[i];
999 FcChar8 *str;
1000
1001 if (FcPatternGetString (pat, FC_FAMILY, 0, &str) == FcResultMatch)
1002 list = Fcons (intern ((char *) str), list);
1003 }
1004
1005 finish:
At conditional (3): "objset != 0" taking false path
1006 if (objset) FcObjectSetDestroy (objset);
At conditional (4): "fontset != 0" taking false path
1007 if (fontset) FcFontSetDestroy (fontset);
At conditional (5): "pattern != 0" taking false path
1008 if (pattern) FcPatternDestroy (pattern);
1009
Event uninit_use: Using uninitialized value "list"
Also see events: [var_decl]
1010 return list;
1011 }
1012
1013
next reply other threads:[~2008-12-03 1:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-03 1:04 Dan Nicolaescu [this message]
2008-12-03 5:00 ` Problem report #127: base/src/emacs/src/ftfont.c (ftfont_list_family); UNINIT Chong Yidong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200812030120.mB31KMko022808@mothra.ics.uci.edu \
--to=dann@ics.uci.edu \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).