From f04508e0090e01c03306a8aac58728226d48ad62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=C3=B6hler?= Date: Sun, 18 Mar 2007 22:45:08 +0000 Subject: [PATCH] Do not printf %s if the param is NULL. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15738 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome/dialog-print-check.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gnome/dialog-print-check.c b/src/gnome/dialog-print-check.c index bc2f072e9e..724f05027e 100644 --- a/src/gnome/dialog-print-check.c +++ b/src/gnome/dialog-print-check.c @@ -1335,7 +1335,8 @@ draw_text(GncPrintContext * context, const gchar * text, check_item_t * data, } /* 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_text(GncPrintContext * context, const gchar * text, check_item_t * data, } /* 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);