1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

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
This commit is contained in:
Martijn Dekker 2021-02-02 05:17:52 +00:00
parent 0684806d47
commit 627df2b19a

View file

@ -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)