Initialize variable in func_instance_id_generate

This commit is contained in:
akallabeth 2020-07-03 14:59:03 +02:00 committed by akallabeth
parent 8ee0fafa09
commit 66e4eb628b

View File

@ -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,