pcm: fix for the unitialized write buffer

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2022-05-19 17:35:08 +02:00
parent df621629d8
commit a53c2b25f1
2 changed files with 4 additions and 4 deletions

View file

@ -530,7 +530,7 @@ transport_ops_t pcm_shm_ops = {
static int ctl_handler(waiter_t *waiter, unsigned short events)
{
client_t *client = waiter->private_data;
char buf[1];
char buf[1] = "";
ssize_t n;
if (events & POLLIN) {
n = write(client->poll_fd, buf, 1);