Align return value of config_yaml_get to libconfig implementation
Now return value should be equal to number of processed input parameters like in params_libconfig.
This commit is contained in:
@@ -265,7 +265,7 @@ extern "C" int config_yaml_get(configmodule_interface_t *cfg, paramdef_t *cfgopt
|
||||
}
|
||||
}
|
||||
config_yaml::GetParams(cfg, node, cfgoptions, numoptions);
|
||||
return 0;
|
||||
return numoptions;
|
||||
}
|
||||
|
||||
extern "C" int config_yaml_getlist(configmodule_interface_t *cfg,
|
||||
|
||||
Reference in New Issue
Block a user