Fixed coverity issue 1047635

This commit is contained in:
Armin Novak 2013-08-28 15:45:41 +02:00
parent 42ceabbebb
commit 82f0efd6e6

View File

@ -188,6 +188,8 @@ FREERDP_ADDIN** freerdp_channels_list_dynamic_addins(LPSTR pszName, LPSTR pszSub
hFind = FindFirstFileA(pszSearchPath, &FindData);
free(pszSearchPath);
nAddins = 0;
ppAddins = (FREERDP_ADDIN**) malloc(sizeof(FREERDP_ADDIN*) * 128);
ppAddins[nAddins] = NULL;