Fixed allocation size warning.
This commit is contained in:
parent
d225b97078
commit
d525999a06
@ -122,7 +122,7 @@ int ListDictionary_GetKeys(wListDictionary* listDictionary, ULONG_PTR** ppKeys)
|
||||
{
|
||||
int index;
|
||||
int count;
|
||||
ULONG_PTR* pKeys;
|
||||
ULONG_PTR* pKeys = NULL;
|
||||
wListDictionaryItem* item;
|
||||
|
||||
if (!ppKeys)
|
||||
@ -144,6 +144,7 @@ int ListDictionary_GetKeys(wListDictionary* listDictionary, ULONG_PTR** ppKeys)
|
||||
}
|
||||
}
|
||||
|
||||
if (count)
|
||||
pKeys = (ULONG_PTR*) calloc(count, sizeof(ULONG_PTR));
|
||||
|
||||
index = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user