summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2013-11-20 17:13:52 (GMT)
committerLarry Hastings <larry@hastings.org>2013-11-20 17:13:52 (GMT)
commitabc716b0582e775ad0b32b083791184e51ff3c0e (patch)
tree457dbb6ff5413e7afcd27072153acb53323a45f1 /Modules
parentf3bf35eee4d48e214d9684d788934262687dbea3 (diff)
downloadcpython-abc716b0582e775ad0b32b083791184e51ff3c0e.zip
cpython-abc716b0582e775ad0b32b083791184e51ff3c0e.tar.gz
cpython-abc716b0582e775ad0b32b083791184e51ff3c0e.tar.bz2
Issue #19474: Argument Clinic now always specifies a default value for
variables in option groups, to prevent "uninitialized value" warnings.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_cursesmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index d72eca4..6e48693 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -608,11 +608,11 @@ curses_window_addch(PyObject *self, PyObject *args)
{
PyObject *return_value = NULL;
int group_left_1 = 0;
- int x;
- int y;
+ int x = 0;
+ int y = 0;
PyObject *ch;
int group_right_1 = 0;
- long attr;
+ long attr = 0;
switch (PyTuple_Size(args)) {
case 1:
@@ -646,7 +646,7 @@ curses_window_addch(PyObject *self, PyObject *args)
static PyObject *
curses_window_addch_impl(PyObject *self, int group_left_1, int x, int y, PyObject *ch, int group_right_1, long attr)
-/*[clinic checksum: 98ade780397a48d0be48439763424b3b00c92089]*/
+/*[clinic checksum: 094d012af1019387c0219a9c0bc76e90729c833f]*/
{
PyCursesWindowObject *cwself = (PyCursesWindowObject *)self;
int coordinates_group = group_left_1;