svn commit: r252374 - head/bin/ed

Tim Kientzle kientzle at FreeBSD.org
Sat Jun 29 15:49:26 UTC 2013


Author: kientzle
Date: Sat Jun 29 15:49:26 2013
New Revision: 252374
URL: http://svnweb.freebsd.org/changeset/base/252374

Log:
  Fix a -Wunsequenced warning.
  
  Submitted by:	dt71 at gmx.com

Modified:
  head/bin/ed/re.c

Modified: head/bin/ed/re.c
==============================================================================
--- head/bin/ed/re.c	Sat Jun 29 15:31:23 2013	(r252373)
+++ head/bin/ed/re.c	Sat Jun 29 15:49:26 2013	(r252374)
@@ -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;
 			}


More information about the svn-src-all mailing list