diff options
author | Alfred E. Heggestad <aeh@db.org> | 2016-01-15 15:14:51 +0100 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2016-01-15 15:14:51 +0100 |
commit | d9ffdfa6ac7b5ca3f26bcd4663c0a3e65b56535f (patch) | |
tree | 283a477b639c2c1c788670bc821c4ca9fa557212 | |
parent | 84a2093a755e8c6f7b026be9ff78015ffd5534a8 (diff) | |
parent | 5a604876d9b8b3c959c00ce616f96be812ee334b (diff) |
Merge pull request #104 from czarkoff/sndio
sndio: initialize "par" to NULL
-rw-r--r-- | modules/sndio/sndio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/sndio/sndio.c b/modules/sndio/sndio.c index c7727c7..69c4b27 100644 --- a/modules/sndio/sndio.c +++ b/modules/sndio/sndio.c @@ -47,7 +47,7 @@ static struct auplay *auplay; static struct sio_par *sndio_initpar(uint32_t srate, uint8_t ch) { - struct sio_par *par; + struct sio_par *par = NULL; if ((par = mem_zalloc(sizeof(*par), NULL)) == NULL) return NULL; @@ -144,7 +144,7 @@ static int src_alloc(struct ausrc_st **stp, const struct ausrc *as, ausrc_read_h *rh, ausrc_error_h *errh, void *arg) { struct ausrc_st *st; - struct sio_par *par; + struct sio_par *par = NULL; int err; const char *name; @@ -215,7 +215,7 @@ static int play_alloc(struct auplay_st **stp, const struct auplay *ap, auplay_write_h *wh, void *arg) { struct auplay_st *st; - struct sio_par *par; + struct sio_par *par = NULL; int err; const char *name; |