changeset 27842:c03685299634

Consistently use NULL for pointers instead of 0.
author reimar
date Sun, 02 Nov 2008 11:48:20 +0000
parents 29d72a47da0c
children 39d9ff988bc0
files libass/ass_fontconfig.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_fontconfig.c	Sun Nov 02 09:57:22 2008 +0000
+++ b/libass/ass_fontconfig.c	Sun Nov 02 11:48:20 2008 +0000
@@ -77,14 +77,14 @@
 {
 	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 @@
 	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 @@
 		}
 	}
 
-	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;