]> granicus.if.org Git - python/commitdiff
Add missing sentinel to PyCursesWindow_getsets
authorRonald Oussoren <ronaldoussoren@mac.com>
Tue, 17 Jan 2012 15:53:20 +0000 (16:53 +0100)
committerRonald Oussoren <ronaldoussoren@mac.com>
Tue, 17 Jan 2012 15:53:20 +0000 (16:53 +0100)
The PyCursesWindow_getsets array was introduced without sentinel in c3581ca21a57.

Modules/_cursesmodule.c

index 166a93a6ecd509408b91b2789bd281bf554b2a64..64178d7aefa24490462dec941bc495e1870e4a17 100644 (file)
@@ -2056,7 +2056,8 @@ static PyGetSetDef PyCursesWindow_getsets[] = {
     {"encoding",
      (getter)PyCursesWindow_get_encoding,
      (setter)PyCursesWindow_set_encoding,
-     "the typecode character used to create the array"}
+     "the typecode character used to create the array"},
+    {NULL, NULL, NULL, NULL }  /* sentinel */
 };
 
 /* -------------------------------------------------------*/