Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jun 2013 15:49:26 +0000 (UTC)
From:      Tim Kientzle <kientzle@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r252374 - head/bin/ed
Message-ID:  <201306291549.r5TFnQwZ020422@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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;
 			}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306291549.r5TFnQwZ020422>