Skip to content

Commit b85440d

Browse files
committed
8361888: [GCC static analyzer] ProcessImpl_md.c Java_java_lang_ProcessImpl_forkAndExec error: use of uninitialized value '*(ChildStuff *)p.mode
Reviewed-by: rriggs, syan
1 parent fd2ee08 commit b85440d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java.base/unix/native/libjava/ProcessImpl_md.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ Java_java_lang_ProcessImpl_forkAndExec(JNIEnv *env,
732732
(fds[2] == -1 && pipe(err) < 0) ||
733733
(pipe(childenv) < 0) ||
734734
(pipe(fail) < 0)) {
735-
throwInternalIOException(env, errno, "Bad file descriptor", c->mode);
735+
throwInternalIOException(env, errno, "Bad file descriptor", mode);
736736
goto Catch;
737737
}
738738
c->fds[0] = fds[0];

0 commit comments

Comments
 (0)