From 690d3969b80776bf896fbfbfac5eabe7d074c9bb Mon Sep 17 00:00:00 2001 From: Jie Fu Date: Fri, 19 May 2023 11:13:37 +0000 Subject: [PATCH] 8308408: Build failure with -Werror=maybe-uninitialized in libjli/java.c with GCC8 Reviewed-by: alanb --- src/java.base/share/native/libjli/java.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java.base/share/native/libjli/java.c b/src/java.base/share/native/libjli/java.c index eb519e4e51e..7895153a624 100644 --- a/src/java.base/share/native/libjli/java.c +++ b/src/java.base/share/native/libjli/java.c @@ -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;