File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/java.base/share/native/libjimage Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments