summaryrefslogtreecommitdiffstats
path: root/Python/pathconfig.c
diff options
context:
space:
mode:
authorAlex Henrie <alexhenrie24@gmail.com>2020-01-09 09:14:11 (GMT)
committerVictor Stinner <vstinner@python.org>2020-01-09 09:14:11 (GMT)
commitf3e5e9566989635225d1b91088888074fc260817 (patch)
tree754d653c85230e79bfb75806aca4e057066786f5 /Python/pathconfig.c
parenta1c1be24cb3ae25b5b53e9dc94d6327009626283 (diff)
downloadcpython-f3e5e9566989635225d1b91088888074fc260817.zip
cpython-f3e5e9566989635225d1b91088888074fc260817.tar.gz
cpython-f3e5e9566989635225d1b91088888074fc260817.tar.bz2
bpo-39270: Remove dead assignment from config_init_module_search_paths (GH-17914)
Diffstat (limited to 'Python/pathconfig.c')
-rw-r--r--Python/pathconfig.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/pathconfig.c b/Python/pathconfig.c
index 6abc648..e37b561 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 */
}