Use NULL instead of an empty string as PyObject_CallMethod format

This commit is contained in:
Daniele Varrazzo 2013-04-07 17:25:43 +01:00
parent 884a7f7db6
commit b214d10fff

View File

@ -417,11 +417,11 @@ psyco_conn_exit(connectionObject *self, PyObject *args)
}
if (type == Py_None) {
if (!(tmp = PyObject_CallMethod((PyObject *)self, "commit", ""))) {
if (!(tmp = PyObject_CallMethod((PyObject *)self, "commit", NULL))) {
goto exit;
}
} else {
if (!(tmp = PyObject_CallMethod((PyObject *)self, "rollback", ""))) {
if (!(tmp = PyObject_CallMethod((PyObject *)self, "rollback", NULL))) {
goto exit;
}
}