Skip to content

Commit 690d396

Browse files
committed
8308408: Build failure with -Werror=maybe-uninitialized in libjli/java.c with GCC8
Reviewed-by: alanb
1 parent fa14314 commit 690d396

File tree

1 file changed

+2
-2
lines changed
  • src/java.base/share/native/libjli

1 file changed

+2
-2
lines changed

src/java.base/share/native/libjli/java.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1995, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1995, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -1205,7 +1205,7 @@ ParseArguments(int *pargc, char ***pargv,
12051205
int argc = *pargc;
12061206
char **argv = *pargv;
12071207
int mode = LM_UNKNOWN;
1208-
char *arg;
1208+
char *arg = NULL;
12091209

12101210
*pret = 0;
12111211

0 commit comments

Comments
 (0)