diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-05-05 13:36:23 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-05-05 13:36:23 +0000 |
commit | 1f1d835c4c806974a1b9d9baa5fc45b63767b6d7 (patch) | |
tree | 6ecbb64cc3f5503c6b215fce0e5a51f5b6464647 /lib/libsndio | |
parent | 6598ef40fbd945ea25f2e7e15b3a13d96e761ff7 (diff) |
add missing braces in _aucat_wmsg()
As ratchov@ notes:
"all _aucat_wmsg() callers set hdl->wtodo, so your diff can't break
things that used to work by accident."
ok ratchov@
Diffstat (limited to 'lib/libsndio')
-rw-r--r-- | lib/libsndio/aucat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libsndio/aucat.c b/lib/libsndio/aucat.c index 4a10b773586..a1e3f8d5b0e 100644 --- a/lib/libsndio/aucat.c +++ b/lib/libsndio/aucat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aucat.c,v 1.62 2014/09/07 10:12:17 guenther Exp $ */ +/* $OpenBSD: aucat.c,v 1.63 2015/05/05 13:36:22 jsg Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -88,9 +88,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(); |