From 9c9ff5f8a7b082babf3aa54478255ec9699cee7f Mon Sep 17 00:00:00 2001 From: Mike H Date: Tue, 13 Feb 2018 19:41:02 +0000 Subject: [PATCH] Initialize arrays --- nx/source/services/audout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nx/source/services/audout.c b/nx/source/services/audout.c index 3d273565..23b6ef8c 100644 --- a/nx/source/services/audout.c +++ b/nx/source/services/audout.c @@ -29,8 +29,8 @@ Result audoutInitialize(void) AudioOutState State = 0; // Passing an empty device name will open the default "DeviceOut" - char DeviceNameIn[DEVICE_NAME_LENGTH]; - char DeviceNameOut[DEVICE_NAME_LENGTH]; + char DeviceNameIn[DEVICE_NAME_LENGTH] = {0}; + char DeviceNameOut[DEVICE_NAME_LENGTH] = {0}; rc = audoutOpenAudioOut(DeviceNameIn, DeviceNameOut, DEFAULT_SAMPLE_RATE, CHANNEL_COUNT_MAGIC, &SampleRate, &ChannelCount, &Format, &State); }