summaryrefslogtreecommitdiff
path: root/libmu_scm/mu_mailbox.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2001-09-08 10:32:38 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2001-09-08 10:32:38 +0000
commitebf199fb6d603c14605ed8f1ac7c03933528d601 (patch)
tree59680d8cfcc087f07cbf2d6e681e345c8010f4eb /libmu_scm/mu_mailbox.c
parent49f791dd2ccdd4b8bbe90c511cdea1c11e12b3bd (diff)
downloadmailutils-ebf199fb6d603c14605ed8f1ac7c03933528d601.tar.gz
mailutils-ebf199fb6d603c14605ed8f1ac7c03933528d601.tar.bz2
handle #f when printing mailbox object
Diffstat (limited to 'libmu_scm/mu_mailbox.c')
-rw-r--r--libmu_scm/mu_mailbox.c26
1 files changed, 17 insertions, 9 deletions
diff --git a/libmu_scm/mu_mailbox.c b/libmu_scm/mu_mailbox.c
index 34904b635..8dc9933fe 100644
--- a/libmu_scm/mu_mailbox.c
+++ b/libmu_scm/mu_mailbox.c
@@ -58,18 +58,26 @@ mu_scm_mailbox_print (SCM mailbox_smob, SCM port, scm_print_state * pstate)
scm_puts ("#<mailbox ", port);
- p = url_to_string (url);
- if (p)
+ if (mailbox_smob == SCM_BOOL_F)
{
- char buf[64];
-
- scm_puts (p, port);
-
- snprintf (buf, sizeof (buf), " (%d)", count);
- scm_puts (buf, port);
+ /* mu_mailbox.* functions may return #f */
+ scm_puts ("#f", port);
}
else
- scm_puts ("uninitialized", port);
+ {
+ p = url_to_string (url);
+ if (p)
+ {
+ char buf[64];
+
+ scm_puts (p, port);
+
+ snprintf (buf, sizeof (buf), " (%d)", count);
+ scm_puts (buf, port);
+ }
+ else
+ scm_puts ("uninitialized", port);
+ }
scm_puts (">", port);
return 1;

Return to:

Send suggestions and report system problems to the System administrator.