Skip to content
Permalink
Browse files
8266176: -Wmaybe-uninitialized happens in libArrayIndexOutOfBoundsExc…
…eptionTest.c

Reviewed-by: dholmes
  • Loading branch information
YaSuenag committed Apr 29, 2021
1 parent 155da25 commit 39abac98f9803897e40c32d5bcb35bd25c348d2a
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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); \
}

1 comment on commit 39abac9

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 39abac9 Apr 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.