8308408: Build failure with -Werror=maybe-uninitialized in libjli/java.c with GCC8

Reviewed-by: alanb
This commit is contained in:
Jie Fu 2023-05-19 11:13:37 +00:00
parent fa14314853
commit 690d3969b8

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 2023, 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
@ -1205,7 +1205,7 @@ ParseArguments(int *pargc, char ***pargv,
int argc = *pargc;
char **argv = *pargv;
int mode = LM_UNKNOWN;
char *arg;
char *arg = NULL;
*pret = 0;