Skip to content

Commit

Permalink
fix vc runtime check "variable
Browse files Browse the repository at this point in the history
win_flex: filter.c (filter_apply_chain): fix runtime
part of the adjusted code
  • Loading branch information
GitMensch authored Sep 13, 2018
1 parent 45e09d0 commit 6cfd835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flex/src/filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ bool filter_apply_chain (struct filter * chain, FILE* in_file, FILE* out_file)
static char file_num = '0';
FILE* mid_out_file = NULL;
int r;
bool result;
bool result = true;

++file_num;
out_file_name[1] = file_num;
Expand Down

1 comment on commit 6cfd835

@GitMensch
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed vs runtime check no.3 fix for

The variable 'result' is being used without being initialized.

Note: The fixed code part is in win_flex port only which applies a workaround for missing fork().

Please sign in to comment.