Skip to content

Commit 7257a07

Browse files
committed
[lworld] 8366093 breaks build
1 parent 6d774f6 commit 7257a07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java.base/share/native/libjimage/jimage.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ JIMAGE_FindResource(JImageFile* image,
112112
size_t preview_infix_len = strlen(preview_infix);
113113

114114
// TBD: assert(module_name_len > 0, "module name must be non-empty");
115-
assert(name_len > 0, "resource name must be non-empty");
115+
assert(name_len > 0 && "resource name must be non-empty");
116116

117117
// Do not attempt to lookup anything of the form /modules/... or /packages/...
118118
if (strncmp(module_name, str_modules, sizeof(str_modules)) == 0
@@ -187,7 +187,7 @@ JIMAGE_FindResource(JImageFile* image,
187187
memcpy(&name_buffer[index], preview_infix, preview_infix_len);
188188
index += preview_infix_len;
189189
// Check we copied up to the expected '/' separator.
190-
assert(name_buffer[index] == '/', "bad string concatenation");
190+
assert(name_buffer[index] == '/' && "bad string concatenation");
191191
// The preview path now begins at the start of the buffer.
192192
path = &name_buffer[0];
193193
}

0 commit comments

Comments
 (0)