]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39270: Remove dead assignment from config_init_module_search_paths (GH-17914)
authorAlex Henrie <alexhenrie24@gmail.com>
Thu, 9 Jan 2020 09:14:11 +0000 (09:14 +0000)
committerVictor Stinner <vstinner@python.org>
Thu, 9 Jan 2020 09:14:11 +0000 (10:14 +0100)
Python/pathconfig.c

index 6abc648769f712a8b945e23a40cc58759f418feb..e37b5612366e4c5be38581e515fd0391ed247c50 100644 (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 */
         }