diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-11-02 11:48:20 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-11-02 11:48:20 +0000 |
commit | 3a7f74367bcc858d826f61e01ed2dcf4d31b85c2 (patch) | |
tree | 9d7a9023c2617a4888ebb36d33b711f4da09ab22 | |
parent | c6012a37793663082049bfdcec711ae9ddd2b740 (diff) | |
download | libass-3a7f74367bcc858d826f61e01ed2dcf4d31b85c2.tar.bz2 libass-3a7f74367bcc858d826f61e01ed2dcf4d31b85c2.tar.xz |
Consistently use NULL for pointers instead of 0.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27876 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libass/ass_fontconfig.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libass/ass_fontconfig.c b/libass/ass_fontconfig.c index 5edbdec..9a7bdde 100644 --- a/libass/ass_fontconfig.c +++ b/libass/ass_fontconfig.c @@ -77,14 +77,14 @@ static char* _select_font(fc_instance_t* priv, const char* family, unsigned bold { FcBool rc; FcResult result; - FcPattern *pat = 0, *rpat = 0; + FcPattern *pat = NULL, *rpat = NULL; int r_index, r_slant, r_weight; FcChar8 *r_family, *r_style, *r_file, *r_fullname; FcBool r_outline, r_embolden; FcCharSet* r_charset; - FcFontSet* fset = 0; + FcFontSet* fset = NULL; int curf; - char* retval = 0; + char* retval = NULL; int family_cnt; *index = 0; @@ -318,7 +318,7 @@ static void process_fontdata(fc_instance_t* priv, ass_library_t* library, FT_Lib char* fname; const char* fonts_dir = library->fonts_dir; char buf[1000]; - FILE* fp = 0; + FILE* fp = NULL; if (!fonts_dir) return; @@ -464,9 +464,9 @@ fc_instance_t* fontconfig_init(ass_library_t* library, FT_Library ftlibrary, con } } - priv->family_default = family ? strdup(family) : 0; + priv->family_default = family ? strdup(family) : NULL; exit: - priv->path_default = path ? strdup(path) : 0; + priv->path_default = path ? strdup(path) : NULL; priv->index_default = 0; return priv; |