Navigation Menu

Skip to content

Commit

Permalink
8266173: -Wmaybe-uninitialized happens in jni_util.c
Browse files Browse the repository at this point in the history
Reviewed-by: dholmes
  • Loading branch information
YaSuenag committed Apr 29, 2021
1 parent 9605aed commit 4a9f231
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/java.base/share/native/libjava/jni_util.c
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -462,7 +462,7 @@ static jstring
newString646_US(JNIEnv *env, const char *str)
{
int len = (int)strlen(str);
jchar buf[512];
jchar buf[512] = {0};
jchar *str1;
jstring result;
int i;
Expand Down

1 comment on commit 4a9f231

@openjdk-notifier
Copy link

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.