diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2011-02-13 16:19:12 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2011-02-14 20:52:51 +0100 |
commit | 2c1c5db993c28e96b47a77148a4635931384810d (patch) | |
tree | dab0f15b5c340662d88cd20f8f59bc71d28d4b8a /libc/misc/regex | |
parent | 133bc4376ac6c1042a88d9129f850158dbaed029 (diff) |
regex: remove set but not used variable
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/misc/regex')
-rw-r--r-- | libc/misc/regex/regex_internal.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libc/misc/regex/regex_internal.c b/libc/misc/regex/regex_internal.c index de640e08d..c6ac8dda1 100644 --- a/libc/misc/regex/regex_internal.c +++ b/libc/misc/regex/regex_internal.c @@ -627,7 +627,7 @@ re_string_reconstruct (re_string_t *pstr, int idx, int eflags) if (pstr->is_utf8) { - const unsigned char *raw, *p, *q, *end; + const unsigned char *raw, *p, *end; /* Special case UTF-8. Multi-byte chars start with any byte other than 0x80 - 0xbf. */ @@ -654,13 +654,11 @@ re_string_reconstruct (re_string_t *pstr, int idx, int eflags) unsigned char buf[6]; size_t mbclen; - q = p; if (BE (pstr->trans != NULL, 0)) { int i = mlen < 6 ? mlen : 6; while (--i >= 0) buf[i] = pstr->trans[p[i]]; - q = buf; } /* XXX Don't use mbrtowc, we know which conversion to use (UTF-8 -> UCS4). */ |