diff options
author | Grigori Goronzy <greg@chown.ath.cx> | 2015-09-07 12:13:33 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@chown.ath.cx> | 2015-09-07 12:13:33 +0200 |
commit | 5eb0970a8d714cf69c5252dbfbf3df6e8d268f6a (patch) | |
tree | becee3c6a88609187b92083eacb558f931672b71 | |
parent | a0ca3965fe8dd533578a2a918501aae758d17300 (diff) | |
download | libass-5eb0970a8d714cf69c5252dbfbf3df6e8d268f6a.tar.bz2 libass-5eb0970a8d714cf69c5252dbfbf3df6e8d268f6a.tar.xz |
fontselect: initialize postscript name
Bad things can happen otherwise. Found by coverity scan.
-rw-r--r-- | libass/ass_font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_font.c b/libass/ass_font.c index b3c639d..5b0131f 100644 --- a/libass/ass_font.c +++ b/libass/ass_font.c @@ -135,7 +135,7 @@ close_stream_font(FT_Stream stream) static int add_face(ASS_FontSelector *fontsel, ASS_Font *font, uint32_t ch) { char *path; - char *postscript_name; + char *postscript_name = NULL; int i, index, uid, error; ASS_FontStream stream = { NULL, NULL }; FT_Face face; |