mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
control: shm - initialize write buffer
ccontrol_shm.c: In function ‘snd_ctl_shm_action’:
control_shm.c:54:23: error: invalid initializer
54 | char buf[1] = 0;
| ^
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
859448f010
commit
f1fa7ea077
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ static int snd_ctl_shm_action(snd_ctl_t *ctl)
|
|||
{
|
||||
snd_ctl_shm_t *shm = ctl->private_data;
|
||||
int err;
|
||||
char buf[1];
|
||||
char buf[1] = {0};
|
||||
volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl;
|
||||
err = write(shm->socket, buf, 1);
|
||||
if (err != 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue