]> git.sesse.net Git - vlc/commitdiff
freetype: NULL for %s is not portable
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 26 Dec 2009 12:29:08 +0000 (14:29 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 26 Dec 2009 17:39:13 +0000 (19:39 +0200)
modules/misc/freetype.c

index b78da4802110757d8b56d8988b808c2c5692bb8e..ce3b63fe9b3ad6f16d2d695e75e4bd27ad7fd882 100644 (file)
@@ -427,7 +427,8 @@ static int Create( vlc_object_t *p_this )
         goto error;
     }
 
-    msg_Dbg( p_filter, "Using %s as font from file %s", psz_fontfamily, psz_fontfile );
+    msg_Dbg( p_filter, "Using %s as font from file %s", psz_fontfamily,
+             psz_fontfile ? psz_fontfile : "(null)" );
     p_sys->psz_fontfamily = strdup( psz_fontfamily );
 # ifdef WIN32
     if( p_dialog )
@@ -458,12 +459,14 @@ static int Create( vlc_object_t *p_this )
 
     if( i_error == FT_Err_Unknown_File_Format )
     {
-        msg_Err( p_filter, "file %s have unknown format", psz_fontfile );
+        msg_Err( p_filter, "file %s have unknown format",
+                 psz_fontfile ? psz_fontfile : "(null)" );
         goto error;
     }
     else if( i_error )
     {
-        msg_Err( p_filter, "failed to load font file %s", psz_fontfile );
+        msg_Err( p_filter, "failed to load font file %s",
+                 psz_fontfile ? psz_fontfile : "(null)" );
         goto error;
     }