[Python-checkins] bpo-39270: Remove dead assignment from config_init_module_search_paths (GH-17914)

Victor Stinner webhook-mailer at python.org
Thu Jan 9 04:14:16 EST 2020


https://github.com/python/cpython/commit/f3e5e9566989635225d1b91088888074fc260817
commit: f3e5e9566989635225d1b91088888074fc260817
branch: master
author: Alex Henrie <alexhenrie24 at gmail.com>
committer: Victor Stinner <vstinner at python.org>
date: 2020-01-09T10:14:11+01:00
summary:

bpo-39270: Remove dead assignment from config_init_module_search_paths (GH-17914)

files:
M Python/pathconfig.c

diff --git a/Python/pathconfig.c b/Python/pathconfig.c
index 6abc648769f71..e37b5612366e4 100644
--- a/Python/pathconfig.c
+++ b/Python/pathconfig.c
@@ -240,9 +240,8 @@ config_init_module_search_paths(PyConfig *config, _PyPathConfig *pathconfig)
 
     const wchar_t *sys_path = pathconfig->module_search_path;
     const wchar_t delim = DELIM;
-    const wchar_t *p = sys_path;
     while (1) {
-        p = wcschr(sys_path, delim);
+        const wchar_t *p = wcschr(sys_path, delim);
         if (p == NULL) {
             p = sys_path + wcslen(sys_path); /* End of string */
         }



More information about the Python-checkins mailing list