From 71191904a3f8b9c2f737d1f7feb0c3ff748960df Mon Sep 17 00:00:00 2001 From: 9 Date: Mon, 29 Oct 2001 01:29:44 +0000 Subject: Some debug printf fixes for printf's that dont like null %s's. 2001-10-29 * rule-editor.c: Some debug printf fixes for printf's that dont like null %s's. svn path=/trunk/; revision=14309 --- filter/ChangeLog | 5 +++++ filter/rule-editor.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/filter/ChangeLog b/filter/ChangeLog index de02e3af47..ff73b5fb36 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,8 @@ +2001-10-29 + + * rule-editor.c: Some debug printf fixes for printf's that dont + like null %s's. + 2001-10-28 * filter-context.c (filter_rename_uri): Implement, change any diff --git a/filter/rule-editor.c b/filter/rule-editor.c index 7f2d973954..401474ea2a 100644 --- a/filter/rule-editor.c +++ b/filter/rule-editor.c @@ -493,12 +493,12 @@ set_source (RuleEditor *re, const char *source) gtk_list_clear_items(GTK_LIST(re->list), 0, -1); - d(printf("Checking for rules that are of type %s\n", source)); + d(printf("Checking for rules that are of type %s\n", source?source:"")); while ((rule = rule_context_next_rule(re->context, rule, source)) != NULL) { GtkWidget *item; char *s; - d(printf(" hit %s(%s)\n", rule->name, source)); + d(printf(" hit %s(%s)\n", rule->name, source?source:")); s = e_utf8_to_gtk_string (GTK_WIDGET (re->list), U_(rule->name)); item = gtk_list_item_new_with_label (s); g_free (s); -- cgit v1.2.3