fix missing brace mistake, from jsg@

This commit is contained in:
Alexandre Ratchov 2015-05-05 14:45:55 +02:00
parent 04d8fe25dd
commit 33ad1a504d
1 changed files with 2 additions and 1 deletions

View File

@ -127,9 +127,10 @@ _aucat_wmsg(struct aucat *hdl, int *eof)
ssize_t n;
unsigned char *data;
if (hdl->wstate == WSTATE_IDLE)
if (hdl->wstate == WSTATE_IDLE) {
hdl->wstate = WSTATE_MSG;
hdl->wtodo = sizeof(struct amsg);
}
if (hdl->wstate != WSTATE_MSG) {
DPRINTF("_aucat_wmsg: bad state\n");
abort();