fail signature check if none of the keyword args are used.

This commit is contained in:
Robin Dunn (cyclops)
2015-03-17 16:39:14 -07:00
parent 15395e9df2
commit 37a9711136

View File

@@ -3720,7 +3720,8 @@ static int parsePass1(PyObject **parseErrp, sipSimpleWrapper **selfp,
if (nr_kwd_args_used == 0 && unused != NULL)
{
Py_INCREF(sipKwdArgs);
*unused = sipKwdArgs;
*unused = sipKwdArgs;
failure.reason = TooMany;
}
else
{