From: Stefan Krah Date: Sun, 8 Jan 2017 00:11:27 +0000 (+0100) Subject: Revert part of 3cb3e224b692 in code that I maintain. X-Git-Tag: v3.6.1rc1~201 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dada5a8d7558d1a7794c4854a8e3f21a999f49b6;p=thirdparty%2FPython%2Fcpython.git Revert part of 3cb3e224b692 in code that I maintain. --- diff --git a/Modules/_testbuffer.c b/Modules/_testbuffer.c index 13d3cccfa4ff..43db8a8e53a3 100644 --- a/Modules/_testbuffer.c +++ b/Modules/_testbuffer.c @@ -13,7 +13,7 @@ PyObject *Struct = NULL; PyObject *calcsize = NULL; /* cache simple format string */ -static const char simple_fmt[] = "B"; +static const char *simple_fmt = "B"; PyObject *simple_format = NULL; #define SIMPLE_FORMAT(fmt) (fmt == NULL || strcmp(fmt, "B") == 0) #define FIX_FORMAT(fmt) (fmt == NULL ? "B" : fmt)