comparison src/protocols/zephyr/ZRecvNot.c @ 10690:5c6326fe4190

[gaim-migrate @ 12241] Zephyr fixes from Derrick J Brashear committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sun, 13 Mar 2005 23:30:33 +0000
parents 43d6c08d7e96
children 64895571248f
comparison
equal deleted inserted replaced
10689:04e61e64db63 10690:5c6326fe4190
2 * It contains source for ZReceiveNotice function. 2 * It contains source for ZReceiveNotice function.
3 * 3 *
4 * Created by: Robert French 4 * Created by: Robert French
5 * 5 *
6 * $Source$ 6 * $Source$
7 * $Author: chipx86 $ 7 * $Author: seanegan $
8 * 8 *
9 * Copyright (c) 1987,1988 by the Massachusetts Institute of Technology. 9 * Copyright (c) 1987,1988 by the Massachusetts Institute of Technology.
10 * For copying and distribution information, see the file 10 * For copying and distribution information, see the file
11 * "mit-copyright.h". 11 * "mit-copyright.h".
12 */ 12 */
30 if ((retval = Z_WaitForComplete()) != ZERR_NONE) 30 if ((retval = Z_WaitForComplete()) != ZERR_NONE)
31 return (retval); 31 return (retval);
32 32
33 nextq = Z_GetFirstComplete(); 33 nextq = Z_GetFirstComplete();
34 34
35 if (!nextq)
36 return (ENOMEM);
37
35 len = nextq->packet_len; 38 len = nextq->packet_len;
36 39
37 if (!(buffer = (char *) malloc((unsigned) len))) 40 if (!(buffer = (char *) malloc((unsigned) len)))
38 return (ENOMEM); 41 return (ENOMEM);
39 42