summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-04-16 06:19:32 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-04-16 06:19:32 (GMT)
commita4ff44aa268beb7d4cd4d64dcce48f12196d7c61 (patch)
treeb7ee6b012bbaa3c57b7e03d41221594989e8c22e
parent16b7b53ad072fa0a4e9f22c9ac02a1a0a28b6152 (diff)
downloadcpython-a4ff44aa268beb7d4cd4d64dcce48f12196d7c61.zip
cpython-a4ff44aa268beb7d4cd4d64dcce48f12196d7c61.tar.gz
cpython-a4ff44aa268beb7d4cd4d64dcce48f12196d7c61.tar.bz2
Revert 54815 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen.
-rw-r--r--PC/getpathp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/getpathp.c b/PC/getpathp.c
index e62b936..729d2e4 100644
--- a/PC/getpathp.c
+++ b/PC/getpathp.c
@@ -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);