mirror of
https://github.com/wiiu-env/libwupsbackend.git
synced 2024-11-22 09:49:18 +01:00
Fix type cast on malloc
This commit is contained in:
parent
bd2f5461ab
commit
44761b322b
@ -112,7 +112,7 @@ std::vector<PluginContainer> PluginUtils::getLoadedPlugins(uint32_t maxSize) {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
plugin_data_handle *dataHandles = (plugin_container_handle *) malloc(realSize * sizeof(plugin_container_handle));
|
plugin_data_handle *dataHandles = (plugin_data_handle *) malloc(realSize * sizeof(plugin_data_handle));
|
||||||
if(!dataHandles){
|
if(!dataHandles){
|
||||||
free(handles);
|
free(handles);
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user