From 66e4eb628bbf55bcc8e88cf248e5f0c7bec0a7ce Mon Sep 17 00:00:00 2001 From: akallabeth Date: Fri, 3 Jul 2020 14:59:03 +0200 Subject: [PATCH] Initialize variable in func_instance_id_generate --- channels/urbdrc/client/urbdrc_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/urbdrc/client/urbdrc_main.c b/channels/urbdrc/client/urbdrc_main.c index 6f383ecb7..6a6dd7502 100644 --- a/channels/urbdrc/client/urbdrc_main.c +++ b/channels/urbdrc/client/urbdrc_main.c @@ -114,7 +114,7 @@ static int func_container_id_generate(IUDEVICE* pdev, char* strContainerId) static int func_instance_id_generate(IUDEVICE* pdev, char* strInstanceId, size_t len) { - char instanceId[17]; + char instanceId[17] = { 0 }; sprintf_s(instanceId, sizeof(instanceId), "\\%s", pdev->getPath(pdev)); /* format */ sprintf_s(strInstanceId, len,