Init default return value in WUPSGetPluginDataForContainerHandles

This commit is contained in:
Maschell 2020-06-12 21:10:32 +02:00
parent 2633d983f3
commit 4aeeb09901

View File

@ -137,7 +137,7 @@ int32_t WUPSGetPluginMetaInformationByBuffer(plugin_information *output, char *b
}
int32_t WUPSGetPluginDataForContainerHandles(const plugin_container_handle *plugin_container_handle_list, plugin_data_handle *plugin_data_list, uint32_t buffer_size) {
int res;
int res = ERROR_NONE;
if (plugin_container_handle_list != NULL && buffer_size != 0) {
for (uint32_t i = 0; i < buffer_size; i++) {
auto handle = plugin_container_handle_list[i];