Skip to content

Commit

Permalink
Fix a -Wunsequenced warning.
Browse files Browse the repository at this point in the history
Submitted by:	[email protected]
  • Loading branch information
kientzle committed Jun 29, 2013
1 parent ad4422d commit 9d40e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ed/re.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9d40e34

Please sign in to comment.