8266176: -Wmaybe-uninitialized happens in libArrayIndexOutOfBoundsExceptionTest.c

Reviewed-by: dholmes
This commit is contained in:
Yasumasa Suenaga 2021-04-29 07:59:35 +00:00
parent 155da257fd
commit 39abac98f9

View File

@ -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); \
}