]> granicus.if.org Git - python/commitdiff
Revert 54815 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen.
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 16 Apr 2007 06:19:32 +0000 (06:19 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 16 Apr 2007 06:19:32 +0000 (06:19 +0000)
PC/getpathp.c

index e62b936f2d360c86b7206bfcb512d2229f22dce3..729d2e4736bbb26bc627a231c54cd716f4c391a9 100644 (file)
@@ -650,7 +650,7 @@ calculate_path(void)
                           start of the path in question - even if this
                           is one character before the start of the buffer
                        */
-                       while (look >= module_search_path && *look != DELIM)
+                       while (*look != DELIM && look >= module_search_path)
                                look--;
                        nchars = lookEnd-look;
                        strncpy(lookBuf, look+1, nchars);