diff --git a/mozilla/netwerk/base/src/nsURLParsers.cpp b/mozilla/netwerk/base/src/nsURLParsers.cpp index d986511282a..40e565adc5a 100644 --- a/mozilla/netwerk/base/src/nsURLParsers.cpp +++ b/mozilla/netwerk/base/src/nsURLParsers.cpp @@ -327,7 +327,7 @@ nsBaseURLParser::ParseFilePath(const char *filepath, PRInt32 filepathLen, if (*p == '/') { // catch /.. and /. if ((p+1 < end && *(p+1) == '.') && - (p+2 == end || (p+2 < end && *(p+2) == '.' && p+3 == end))) + (p+2 == end || (*(p+2) == '.' && p+3 == end))) p = end - 1; // filepath = . SET_RESULT(directory, 0, p - filepath + 1);