Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
f35581e2
...
f35581e2377aafa018b1b2e8d3a01741c607e3d3
authored
2003-09-10 14:06:06 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mailbox_create): Bugfix. Return failure if the folder cannot be created.
1 parent
fa523d76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
15 deletions
mailbox/mailbox.c
mailbox/mailbox.c
View file @
f35581e
...
...
@@ -109,23 +109,15 @@ mailbox_create (mailbox_t *pmbox, const char *name)
/* Create the folder before initializing the concrete mailbox.
The mailbox needs it's back pointer. */
{
folder_t
folder
;
if
(
folder_create
(
&
folder
,
name
)
==
0
)
mbox
->
folder
=
folder
;
}
/* Create the concrete mailbox type. */
status
=
m_init
(
mbox
);
status
=
folder_create
(
&
mbox
->
folder
,
name
);
if
(
status
==
0
)
status
=
m_init
(
mbox
);
/* Create the concrete mailbox type. */
if
(
status
!=
0
)
{
mailbox_destroy
(
&
mbox
);
}
mailbox_destroy
(
&
mbox
);
else
{
*
pmbox
=
mbox
;
}
*
pmbox
=
mbox
;
}
else
status
=
MU_ERR_NO_HANDLER
;
...
...
Please
register
or
sign in
to post a comment