ALSA: seq: initialize whole fields of automatic variable with union type
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 31 Aug 2016 12:02:13 +0000 (21:02 +0900)
committerTakashi Iwai <tiwai@suse.de>
Wed, 31 Aug 2016 12:09:05 +0000 (14:09 +0200)
commit4127e80a93e8a4ac009a03a8b0897e89042c7ea0
treef78a394e9885467737ff2ee0afc4dbd6d8c1cdf8
parent34b64e5ebffc5e4a9dbf8735561c4159a936248f
ALSA: seq: initialize whole fields of automatic variable with union type

Currently, automatic variable of 'union ioctl_arg' type is initialized
by designated initialization. Although, the actual effect is interpretation
of early element of int type and initialization of 'int pversion'.
Therefore the first field corresponding to int type is initialized to zero.
This is against my expectation to initialize whole fields.

This commit uses memset() to initialize the variable, instead of designated
initialization.

Fixes: 04a56dd8ed0d ('ALSA: seq: change ioctl command operation to get data in kernel space')
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_clientmgr.c