mirror of https://github.com/python/cpython
gh-125667: Statically Initialize the Arg Converter Data Values in _interpqueuesmodule.c (gh-125668)
This commit is contained in:
parent
c3164ae3cf
commit
7cf2dbc3cb
|
@ -1518,7 +1518,7 @@ static PyObject *
|
|||
queuesmod_destroy(PyObject *self, PyObject *args, PyObject *kwds)
|
||||
{
|
||||
static char *kwlist[] = {"qid", NULL};
|
||||
qidarg_converter_data qidarg;
|
||||
qidarg_converter_data qidarg = {0};
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:destroy", kwlist,
|
||||
qidarg_converter, &qidarg)) {
|
||||
return NULL;
|
||||
|
@ -1579,7 +1579,7 @@ static PyObject *
|
|||
queuesmod_put(PyObject *self, PyObject *args, PyObject *kwds)
|
||||
{
|
||||
static char *kwlist[] = {"qid", "obj", "fmt", "unboundop", NULL};
|
||||
qidarg_converter_data qidarg;
|
||||
qidarg_converter_data qidarg = {0};
|
||||
PyObject *obj;
|
||||
int fmt;
|
||||
int unboundop;
|
||||
|
@ -1615,7 +1615,7 @@ static PyObject *
|
|||
queuesmod_get(PyObject *self, PyObject *args, PyObject *kwds)
|
||||
{
|
||||
static char *kwlist[] = {"qid", NULL};
|
||||
qidarg_converter_data qidarg;
|
||||
qidarg_converter_data qidarg = {0};
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:get", kwlist,
|
||||
qidarg_converter, &qidarg)) {
|
||||
return NULL;
|
||||
|
@ -1651,7 +1651,7 @@ static PyObject *
|
|||
queuesmod_bind(PyObject *self, PyObject *args, PyObject *kwds)
|
||||
{
|
||||
static char *kwlist[] = {"qid", NULL};
|
||||
qidarg_converter_data qidarg;
|
||||
qidarg_converter_data qidarg = {0};
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:bind", kwlist,
|
||||
qidarg_converter, &qidarg)) {
|
||||
return NULL;
|
||||
|
@ -1681,7 +1681,7 @@ queuesmod_release(PyObject *self, PyObject *args, PyObject *kwds)
|
|||
{
|
||||
// Note that only the current interpreter is affected.
|
||||
static char *kwlist[] = {"qid", NULL};
|
||||
qidarg_converter_data qidarg;
|
||||
qidarg_converter_data qidarg = {0};
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwds,
|
||||
"O&:release", kwlist,
|
||||
qidarg_converter, &qidarg)) {
|
||||
|
@ -1710,7 +1710,7 @@ static PyObject *
|
|||
queuesmod_get_maxsize(PyObject *self, PyObject *args, PyObject *kwds)
|
||||
{
|
||||
static char *kwlist[] = {"qid", NULL};
|
||||
qidarg_converter_data qidarg;
|
||||
qidarg_converter_data qidarg = {0};
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwds,
|
||||
"O&:get_maxsize", kwlist,
|
||||
qidarg_converter, &qidarg)) {
|
||||
|
@ -1735,7 +1735,7 @@ static PyObject *
|
|||
queuesmod_get_queue_defaults(PyObject *self, PyObject *args, PyObject *kwds)
|
||||
{
|
||||
static char *kwlist[] = {"qid", NULL};
|
||||
qidarg_converter_data qidarg;
|
||||
qidarg_converter_data qidarg = {0};
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwds,
|
||||
"O&:get_queue_defaults", kwlist,
|
||||
qidarg_converter, &qidarg)) {
|
||||
|
@ -1765,7 +1765,7 @@ static PyObject *
|
|||
queuesmod_is_full(PyObject *self, PyObject *args, PyObject *kwds)
|
||||
{
|
||||
static char *kwlist[] = {"qid", NULL};
|
||||
qidarg_converter_data qidarg;
|
||||
qidarg_converter_data qidarg = {0};
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwds,
|
||||
"O&:is_full", kwlist,
|
||||
qidarg_converter, &qidarg)) {
|
||||
|
@ -1793,7 +1793,7 @@ static PyObject *
|
|||
queuesmod_get_count(PyObject *self, PyObject *args, PyObject *kwds)
|
||||
{
|
||||
static char *kwlist[] = {"qid", NULL};
|
||||
qidarg_converter_data qidarg;
|
||||
qidarg_converter_data qidarg = {0};
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwds,
|
||||
"O&:get_count", kwlist,
|
||||
qidarg_converter, &qidarg)) {
|
||||
|
|
Loading…
Reference in New Issue