From 627df2b19a2c6a2097abde92db5ad254bc5329f1 Mon Sep 17 00:00:00 2001 From: Martijn Dekker Date: Tue, 2 Feb 2021 05:17:52 +0000 Subject: [PATCH] libast: optget(3): fix some uninitialised variables This is a part of this OpenSUSE patch: https://build.opensuse.org/package/view_file/shells/ksh/ksh93-gcc.dif --- src/lib/libast/misc/optget.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/libast/misc/optget.c b/src/lib/libast/misc/optget.c index 35cb3cfc33a6..6b249737f65f 100644 --- a/src/lib/libast/misc/optget.c +++ b/src/lib/libast/misc/optget.c @@ -4388,9 +4388,9 @@ optget(register char** argv, const char* oopts) */ opt_info.assignment = 0; - num = 1; - w = v = 0; - x = 0; + nov = no = num = 1; + e = w = v = 0; + n = x = 0; for (;;) { if (!opt_info.offset)