mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8266173: -Wmaybe-uninitialized happens in jni_util.c
Reviewed-by: dholmes
This commit is contained in:
parent
9605aeddee
commit
4a9f2319c9
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue