config: check for Py_BuildValue() errors in Config_foreach_callback_wrapper().
Signed-off-by: W. Trevor King <wking@tremily.us>
This commit is contained in:
parent
4660c9c149
commit
cd643a3d70
@ -229,6 +229,8 @@ Config_foreach_callback_wrapper(const git_config_entry *entry, void *c_payload)
|
||||
args = Py_BuildValue("ssO", entry->name, entry->value, py_payload);
|
||||
else
|
||||
args = Py_BuildValue("ss", entry->name, entry->value);
|
||||
if (!args)
|
||||
return 0;
|
||||
|
||||
if (!(py_result = PyObject_CallObject(py_callback,args)))
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user