Initialize variable in func_instance_id_generate
This commit is contained in:
parent
8ee0fafa09
commit
66e4eb628b
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user