Skip to content

Commit

Permalink
libast: optget(3): fix some uninitialised variables
Browse files Browse the repository at this point in the history
  • Loading branch information
McDutchie committed Feb 2, 2021
1 parent 0684806 commit 627df2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/libast/misc/optget.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 627df2b

Please sign in to comment.