8187570: Comparison between pointer and char in MethodMatcher::canonicalize

Reviewed-by: ysuenaga, eosterlund
This commit is contained in:
Erik Helin 2017-09-15 10:43:03 +02:00
parent aa72ba3a64
commit 80f8ee98e4

View File

@ -96,7 +96,7 @@ bool MethodMatcher::canonicalize(char * line, const char *& error_msg) {
bool have_colon = (colon != NULL);
if (have_colon) {
// Don't allow multiple '::'
if (colon + 2 != '\0') {
if (colon[2] != '\0') {
if (strstr(colon+2, "::")) {
error_msg = "Method pattern only allows one '::' allowed";
return false;