mailbox_get_stream(): Fixed funny bug (introduced Dec 4, 2000).
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -384,7 +384,7 @@ mailbox_set_stream (mailbox_t mbox, stream_t stream) | ... | @@ -384,7 +384,7 @@ mailbox_set_stream (mailbox_t mbox, stream_t stream) |
384 | int | 384 | int |
385 | mailbox_get_stream (mailbox_t mbox, stream_t *pstream) | 385 | mailbox_get_stream (mailbox_t mbox, stream_t *pstream) |
386 | { | 386 | { |
387 | if (mbox == NULL || pstream) | 387 | if (mbox == NULL || pstream == NULL) |
388 | return EINVAL; | 388 | return EINVAL; |
389 | /* The stream is set on the folder if exist, not the mailbox. */ | 389 | /* The stream is set on the folder if exist, not the mailbox. */ |
390 | if (mbox->folder) | 390 | if (mbox->folder) | ... | ... |
-
Please register or sign in to post a comment