From e04f9d005504caf9bfe3aeb9b71191079f4d9354 Mon Sep 17 00:00:00 2001 From: kientzle Date: Sat, 29 Jun 2013 15:49:26 +0000 Subject: [PATCH] Fix a -Wunsequenced warning. Submitted by: dt71@gmx.com --- bin/ed/re.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ed/re.c b/bin/ed/re.c index 08a330de3f87..03a343657bbf 100644 --- a/bin/ed/re.c +++ b/bin/ed/re.c @@ -89,7 +89,7 @@ extract_pattern(int delimiter) default: break; case '[': - if ((nd = parse_char_class(++nd)) == NULL) { + if ((nd = parse_char_class(nd + 1)) == NULL) { errmsg = "unbalanced brackets ([])"; return NULL; }