summaryrefslogtreecommitdiff
path: root/sed
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2005-05-16 09:26:56 +0000
committerPaolo Bonzini <bonzini@gnu.org>2008-01-09 16:11:51 +0100
commitd3f8e118d5abb84b6dd9442e7ae61997d2e24c3a (patch)
treeb40b0bfca701eefefc2cb463218eeabe2fabb4f3 /sed
parent480bc129c19559c0af07dd57a2fc4f6817aed4be (diff)
downloadsed-d3f8e118d5abb84b6dd9442e7ae61997d2e24c3a.tar.gz
fix handling of [^]xyz]
2005-05-16 Eero Hakkinen <eero17@bigfoot.com> * sed/compile.c (snarf_char_class): Fix handling of [^]xyz]. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-47
Diffstat (limited to 'sed')
-rw-r--r--sed/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sed/compile.c b/sed/compile.c
index e6ab4f4..cbf3a84 100644
--- a/sed/compile.c
+++ b/sed/compile.c
@@ -463,7 +463,7 @@ snarf_char_class(b, cur_stat)
ch = inchar();
if (ch == '^')
ch = add_then_next(b, ch);
- else if (ch == CLOSE_BRACKET)
+ if (ch == CLOSE_BRACKET)
ch = add_then_next(b, ch);
/* States are: