diff options
-rw-r--r-- | filter/ChangeLog | 5 | ||||
-rw-r--r-- | 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 <NotZed@Ximian.com> + + * rule-editor.c: Some debug printf fixes for printf's that dont + like null %s's. + 2001-10-28 <NotZed@Ximian.com> * 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:"<nil>")); 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:"<nil">)); s = e_utf8_to_gtk_string (GTK_WIDGET (re->list), U_(rule->name)); item = gtk_list_item_new_with_label (s); g_free (s); |