summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDmitrij D. Czarkoff <czarkoff@gmail.com>2016-01-15 13:40:39 +0100
committerDmitrij D. Czarkoff <czarkoff@gmail.com>2016-01-15 13:40:39 +0100
commit5a604876d9b8b3c959c00ce616f96be812ee334b (patch)
tree283a477b639c2c1c788670bc821c4ca9fa557212 /modules
parent84a2093a755e8c6f7b026be9ff78015ffd5534a8 (diff)
sndio: initialize "par" to NULL
Diffstat (limited to 'modules')
-rw-r--r--modules/sndio/sndio.c6
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;