Skip to content

Commit e9caeff

Browse files
committed
bpo-39270: Remove dead assignment from config_init_module_search_paths
1 parent 5cae042 commit e9caeff

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎Python/pathconfig.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,8 @@ config_init_module_search_paths(PyConfig *config, _PyPathConfig *pathconfig)
240240

241241
const wchar_t *sys_path = pathconfig->module_search_path;
242242
const wchar_t delim = DELIM;
243-
const wchar_t *p = sys_path;
244243
while (1) {
245-
p = wcschr(sys_path, delim);
244+
const wchar_t *p = wcschr(sys_path, delim);
246245
if (p == NULL) {
247246
p = sys_path + wcslen(sys_path); /* End of string */
248247
}

0 commit comments

Comments
 (0)