diff options
author | Norihiro Tanaka <noritnk@kcn.ne.jp> | 2014-10-16 08:32:57 +0900 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-10-15 21:41:08 -0700 |
commit | 423bdd5d9405af4836d9359426ceedf24cf18ceb (patch) | |
tree | a29d35dd9200f0c4ee024c7725184a0ae2b1e2f1 | |
parent | 2a45f93f4e952f5f27a6eb710854b98a548277b8 (diff) | |
download | grep-423bdd5d9405af4836d9359426ceedf24cf18ceb.tar.gz |
grep: initialize validation_boundary properly before use
* src/grep.c (main): Initialize validation_boundary before pre-searching
for an empty line.
-rw-r--r-- | src/grep.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2516,6 +2516,7 @@ main (int argc, char **argv) /* We need one byte prior and one after. */ char eolbytes[3] = { 0, eolbyte, 0 }; size_t match_size; + validated_boundary = eolbytes + 1; skip_empty_lines = ((execute (eolbytes + 1, 1, &match_size, NULL) == 0) == out_invert); |