Initialize variable in func_instance_id_generate
@@ -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,
