diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2009-02-26 22:14:19 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2009-02-26 22:14:19 +0000 |
commit | 194a69a7e00d1e791ef53c69d024fe43e12b4352 (patch) | |
tree | 3af1a8a23d0636f4b848b7fd910814a56dd33206 | |
parent | a5487ce467b99b2f299cd2118c19538a8e6af7a8 (diff) |
don't use ``hdl->filling'' flag uninitialized
ok deraadt
-rw-r--r-- | lib/libsndio/sun.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libsndio/sun.c b/lib/libsndio/sun.c index 518f708a3e5..cc7d6b7aec4 100644 --- a/lib/libsndio/sun.c +++ b/lib/libsndio/sun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sun.c,v 1.13 2009/02/04 07:54:00 ratchov Exp $ */ +/* $OpenBSD: sun.c,v 1.14 2009/02/26 22:14:18 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -469,6 +469,7 @@ sun_start(struct sio_hdl *sh) hdl->sa.eof = 1; return 0; } + hdl->filling = 0; sio_onmove_cb(&hdl->sa, 0); } return 1; |