r15738 - gnucash/trunk/src/gnome - Do not printf %s if the param is NULL.

Andreas Köhler andi5 at cvs.gnucash.org
Sun Mar 18 18:45:09 EDT 2007


Author: andi5
Date: 2007-03-18 18:45:08 -0400 (Sun, 18 Mar 2007)
New Revision: 15738
Trac: http://svn.gnucash.org/trac/changeset/15738

Modified:
   gnucash/trunk/src/gnome/dialog-print-check.c
Log:
Do not printf %s if the param is NULL.


Modified: gnucash/trunk/src/gnome/dialog-print-check.c
===================================================================
--- gnucash/trunk/src/gnome/dialog-print-check.c	2007-03-18 19:39:15 UTC (rev 15737)
+++ gnucash/trunk/src/gnome/dialog-print-check.c	2007-03-18 22:45:08 UTC (rev 15738)
@@ -1335,7 +1335,8 @@
     }
 
     /* Draw the text */
-    g_debug("Text move to %f,%f, print '%s'", data->x, data->y, text);
+    g_debug("Text move to %f,%f, print '%s'", data->x, data->y,
+            text ? text : "(null)");
     cairo_move_to(cr, data->x, data->y - height);
     pango_cairo_show_layout(cr, layout);
 
@@ -1364,7 +1365,8 @@
     }
 
     /* Draw the text */
-    g_debug("Text move to %f,%f, print '%s'", data->x, data->y, text);
+    g_debug("Text move to %f,%f, print '%s'", data->x, data->y,
+            text ? text : "(null)");
     gnome_print_moveto(context, data->x, data->y);
     gnome_print_show(context, text);
     gnome_print_grestore(context);



More information about the gnucash-changes mailing list