mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-18 01:17:57 +00:00
8187570: Comparison between pointer and char in MethodMatcher::canonicalize
Reviewed-by: ysuenaga, eosterlund
This commit is contained in:
parent
aa72ba3a64
commit
80f8ee98e4
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user