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

Backport-of: 39abac9
  • Loading branch information
Paul Hohensee committed Dec 1, 2021
1 parent a0c349b commit 12ffc99d1d6b1330db3f1e9604149f993086aced
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 12ffc99

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 12ffc99 Dec 1, 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.