Index: base/file_path.cc |
diff --git a/base/file_path.cc b/base/file_path.cc |
index 32217f2bc38abf8d4f339d4fb00dcfd454055ce1..29ec7a8044df88c405f237c215b0437961559518 100644 |
--- a/base/file_path.cc |
+++ b/base/file_path.cc |
@@ -249,9 +249,8 @@ bool FilePath::AppendRelativePath(const FilePath& child, |
GetComponents(&parent_components); |
child.GetComponents(&child_components); |
- if (parent_components.size() >= child_components.size()) |
- return false; |
- if (parent_components.empty()) |
+ if (parent_components.empty() || |
+ parent_components.size() >= child_components.size()) |
return false; |
std::vector<StringType>::const_iterator parent_comp = |