pw-cat: zero out info

This commit is contained in:
Wim Taymans 2020-06-03 12:06:14 +02:00
parent 913ad43432
commit baf3b0a27e

View file

@ -1069,6 +1069,7 @@ static int setup_sndfile(struct data *data)
const char *s; const char *s;
unsigned int nom = 0; unsigned int nom = 0;
spa_zero(info);
/* for record, you fill in the info first */ /* for record, you fill in the info first */
if (data->mode == mode_record) { if (data->mode == mode_record) {
if (data->format == NULL) if (data->format == NULL)