diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-02 21:33:05 +0200 |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-02 21:33:05 +0200 |
| commit | edde41d53461acc888c73aedd16c4a218848526e (patch) | |
| tree | 70176b7d373ae46a091ad316f43c20d1c223f40e /Python/pylifecycle.c | |
| parent | 720946323027f5bfb31c006cc9b3ce983af8291f (diff) | |
| parent | bfd49e943b6ca6172715524e1676b66208b59167 (diff) | |
| download | cpython-edde41d53461acc888c73aedd16c4a218848526e.tar.gz | |
Null merge
Diffstat (limited to 'Python/pylifecycle.c')
| -rw-r--r-- | Python/pylifecycle.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index a4f7f823bc..06030c330a 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -193,7 +193,8 @@ add_flag(int flag, const char *envs) static char* get_codec_name(const char *encoding) { - char *name_utf8, *name_str; + const char *name_utf8; + char *name_str; PyObject *codec, *name = NULL; codec = _PyCodec_Lookup(encoding); @@ -1284,8 +1285,7 @@ initstdio(void) when import.c tries to write to stderr in verbose mode. */ encoding_attr = PyObject_GetAttrString(std, "encoding"); if (encoding_attr != NULL) { - const char * std_encoding; - std_encoding = PyUnicode_AsUTF8(encoding_attr); + const char *std_encoding = PyUnicode_AsUTF8(encoding_attr); if (std_encoding != NULL) { PyObject *codec_info = _PyCodec_Lookup(std_encoding); Py_XDECREF(codec_info); |
