grep(1): fix uninitialized variable

This commit is contained in:
Mark 2020-10-16 15:29:51 +03:00
parent 89ede3cea6
commit d64e99b496

View File

@ -29,7 +29,7 @@ static int grep_match(const char *line, const char *pattern) {
#define MATCH_ZERO_MORE 3 #define MATCH_ZERO_MORE 3
#define MATCH_ONE_OPT 4 #define MATCH_ONE_OPT 4
int match_type = MATCH_NONE; int match_type = MATCH_NONE;
int match_char; int match_char = 0;
// Line: abcdef abcdef // Line: abcdef abcdef
// p: abcdef abcdef // p: abcdef abcdef