[MPlayer-cvslog] r27876 - trunk/libass/ass_fontconfig.c

reimar subversion at mplayerhq.hu
Sun Nov 2 12:48:20 CET 2008


Author: reimar
Date: Sun Nov  2 12:48:20 2008
New Revision: 27876

Log:
Consistently use NULL for pointers instead of 0.


Modified:
   trunk/libass/ass_fontconfig.c

Modified: trunk/libass/ass_fontconfig.c
==============================================================================
--- trunk/libass/ass_fontconfig.c	(original)
+++ trunk/libass/ass_fontconfig.c	Sun Nov  2 12:48:20 2008
@@ -77,14 +77,14 @@ static char* _select_font(fc_instance_t*
 {
 	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
 	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_libra
 		}
 	}
 
-	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;



More information about the MPlayer-cvslog mailing list