Commit 1c3f803f 1c3f803f6cace962c2440c358a855a18cfad3330 by Sergey Poznyakoff

mailbox_get_stream(): Fixed funny bug (introduced Dec 4, 2000).

1 parent dcd50df5
...@@ -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)
......