From bd44a7ead9f7336d7bb45f186b2b6ca0300154f7 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sat, 16 Nov 2019 18:55:29 +0200 Subject: bpo-38650: Constify PyStructSequence_UnnamedField. (GH-17005) Make it a constant and referring to a constant string. --- Include/structseq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Include/structseq.h') diff --git a/Include/structseq.h b/Include/structseq.h index e5e5d5c573..8f51c89163 100644 --- a/Include/structseq.h +++ b/Include/structseq.h @@ -19,7 +19,7 @@ typedef struct PyStructSequence_Desc { int n_in_sequence; } PyStructSequence_Desc; -extern char* PyStructSequence_UnnamedField; +extern const char * const PyStructSequence_UnnamedField; #ifndef Py_LIMITED_API PyAPI_FUNC(void) PyStructSequence_InitType(PyTypeObject *type, -- cgit v1.2.1