From d7cd78ec3ba3a7fb8331dde5ea8118cb328726a9 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 12 Apr 2001 18:41:31 +0000 Subject: Don't printf NULL * folder-browser.c (do_message_selected, on_message_selected): Don't printf NULL svn path=/trunk/; revision=9278 --- mail/ChangeLog | 3 +++ mail/folder-browser.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 9ffe778c10..2883c49ebf 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,8 @@ 2001-04-12 Dan Winship + * folder-browser.c (do_message_selected, on_message_selected): + Don't printf NULL + * mail-format.c (mail_part_is_inline): Don't leak memory. 2001-04-12 Jeffrey Stedfast diff --git a/mail/folder-browser.c b/mail/folder-browser.c index 2c1fd764b9..5e2673cc54 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -939,7 +939,7 @@ static void done_message_selected(CamelFolder *folder, char *uid, CamelMimeMessa static gboolean do_message_selected(FolderBrowser *fb) { - d(printf ("selecting uid %s (delayed)\n", fb->new_uid)); + d(printf ("selecting uid %s (delayed)\n", fb->new_uid ? fb->new_uid : "NONE")); /* keep polling if we are busy */ if (fb->reconfigure) { @@ -972,7 +972,7 @@ do_message_selected(FolderBrowser *fb) static void on_message_selected (MessageList *ml, const char *uid, FolderBrowser *fb) { - d(printf ("selecting uid %s (direct)\n", uid)); + d(printf ("selecting uid %s (direct)\n", uid ? uid : "NONE")); if (fb->loading_id != 0) gtk_timeout_remove(fb->loading_id); -- cgit