From: Neal Norwitz Date: Mon, 16 Apr 2007 06:19:32 +0000 (+0000) Subject: Revert 54815 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen. X-Git-Tag: v2.5.1~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a4ff44aa268beb7d4cd4d64dcce48f12196d7c61;p=thirdparty%2FPython%2Fcpython.git Revert 54815 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen. --- diff --git a/PC/getpathp.c b/PC/getpathp.c index e62b936f2d36..729d2e4736bb 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);