Fix IO conversion bug

Expression 'rlen < 0' is always false.
Unsigned type value is never < 0.

Change-Id: Id9f393ff25b009a6c4a6e40b95f561a9369e4585
changes/94/4594/1
Badalyan Vyacheslav 9 years ago
parent 5a96e1fb5e
commit 149d8db96c

@ -490,7 +490,7 @@ const char * AST_OPTIONAL_API_NAME(ast_websocket_session_id)(struct ast_websocke
*/
static inline int ws_safe_read(struct ast_websocket *session, char *buf, int len, enum ast_websocket_opcode *opcode)
{
size_t rlen;
ssize_t rlen;
int xlen = len;
char *rbuf = buf;
int sanity = 10;

Loading…
Cancel
Save