grep(1): fix uninitialized variable
This commit is contained in:
parent
89ede3cea6
commit
d64e99b496
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user