Skip to content

Commit 32026be

Browse files
committed
pythongh-120713: added #ifdef guard over formatted year buffer declaration
1 parent e64780b commit 32026be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/_datetimemodule.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1841,7 +1841,9 @@ wrap_strftime(PyObject *object, PyObject *format, PyObject *timetuple,
18411841

18421842
const char *pin; /* pointer to next char in input format */
18431843
Py_ssize_t flen; /* length of input format */
1844+
#ifdef NORMALIZE_CENTURY
18441845
char ch; /* next char in input format */
1846+
#endif
18451847

18461848
PyObject *newfmt = NULL; /* py string, the output format */
18471849
char *pnew; /* pointer to available byte in output format */

0 commit comments

Comments
 (0)