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

This commit is contained in:
Alex Henrie 2020-01-09 09:14:11 +00:00 committed by Victor Stinner
parent a1c1be24cb
commit f3e5e95669
1 changed files with 1 additions and 2 deletions

View File

@ -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 */
}