diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-05-02 23:47:55 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-05-02 23:47:55 +0300 |
commit | 1fca900fe86520468b762af1eafb3f9c3b4fce19 (patch) | |
tree | 0079bdf5369b27b191cd071439a4f5a8d49e0b99 /dfa.c | |
parent | 3b7a060d1227d01af9b98e748388087c9a160410 (diff) | |
download | egawk-1fca900fe86520468b762af1eafb3f9c3b4fce19.tar.gz egawk-1fca900fe86520468b762af1eafb3f9c3b4fce19.tar.bz2 egawk-1fca900fe86520468b762af1eafb3f9c3b4fce19.zip |
Further sync of dfa.c.
Diffstat (limited to 'dfa.c')
-rw-r--r-- | dfa.c | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -1000,16 +1000,8 @@ parse_bracket_exp (void) /* Defer to the system regex library about the meaning of range expressions. */ regex_t re; - char pattern[6]; - char subject[2]; - - pattern[0] = '['; - pattern[1] = c1; - pattern[2] = '-'; - pattern[3] = c2; - pattern[4] = ']'; - pattern[5] = 0; - subject[0] = subject[1] = 0; + char pattern[6] = { '[', c1, '-', c2, ']', 0 }; + char subject[2] = { 0, 0 }; regcomp (&re, pattern, REG_NOSUB); for (c = 0; c < NOTCHAR; ++c) { |