mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8266176: -Wmaybe-uninitialized happens in libArrayIndexOutOfBoundsExceptionTest.c
Reviewed-by: dholmes
This commit is contained in:
parent
155da257fd
commit
39abac98f9
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2019 SAP SE. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
@ -47,7 +47,7 @@ JNIEXPORT void JNICALL \
|
||||
JNIEXPORT void JNICALL \
|
||||
Java_ArrayIndexOutOfBoundsExceptionTest_doNative##NameType##ArrayRegionStore(JNIEnv *env, jclass klass, \
|
||||
ElementType##Array array, jint start, jint len) { \
|
||||
ElementType content[100]; \
|
||||
ElementType content[100] = {0}; \
|
||||
(*env)->Set##NameType##ArrayRegion(env, array, start, len, content); \
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user