summaryrefslogtreecommitdiff
path: root/mailbox/mutil.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-10-28 13:23:58 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2008-10-28 13:23:58 +0000
commitf3106927f5ae62e96f31419f99f1a9e3bdad5c81 (patch)
tree01f1014903c734a1b30f60555d11634ba2b5ebcf /mailbox/mutil.c
parent4ef89f34158d37b3e2aed8cdc39a64c7c84a270c (diff)
downloadmailutils-f3106927f5ae62e96f31419f99f1a9e3bdad5c81.tar.gz
mailutils-f3106927f5ae62e96f31419f99f1a9e3bdad5c81.tar.bz2
Minor fixes.
* mailbox/mailbox.c (_create_mailbox0): Take care not to destroy url, if creation of the mailbox failed. (_create_mailbox): Destroy url if unable to create mailbox. * mailbox/mutil.c (mu_is_proto): Take starting | as a protocol specification. A kludge. * include/mailutils/argcv.h: Fix indentation.
Diffstat (limited to 'mailbox/mutil.c')
-rw-r--r--mailbox/mutil.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mailbox/mutil.c b/mailbox/mutil.c
index 972b826d5..1440e8d67 100644
--- a/mailbox/mutil.c
+++ b/mailbox/mutil.c
@@ -1373,6 +1373,8 @@ mu_decode_filter (mu_stream_t *pfilter, mu_stream_t input,
int
mu_is_proto (const char *p)
{
+ if (*p == '|')
+ return 1;
for (; *p && *p != '/'; p++)
if (*p == ':')
return 1;

Return to:

Send suggestions and report system problems to the System administrator.