Merge "Fix exception in MakeFileParser"

This commit is contained in:
Yohei Yukawa
2015-12-09 19:11:13 +00:00
committed by Gerrit Code Review

View File

@@ -174,7 +174,7 @@ public class MakeFileParser {
private String findVariables(String value) {
int variableStart = value.indexOf('$');
int variableStart = value.indexOf("$(");
// Keep going until we substituted all variables.
while (variableStart > -1) {
StringBuilder sb = new StringBuilder();
@@ -193,7 +193,7 @@ public class MakeFileParser {
sb.append(value.substring(variableEnd + 1));
}
value = sb.toString();
variableStart = value.indexOf('$');
variableStart = value.indexOf("$(");
}
return value;
}