Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Apr 2007 06:47:48 +0000 (UTC)
From:      Yar Tikhiy <yar@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/sed process.c
Message-ID:  <200704020647.l326lmur047910@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
yar         2007-04-02 06:47:48 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/sed          process.c 
  Log:
  Prevent foot-shooting in advance:  Put the MATCH() macro's value
  in parentheses.  The ?: operator has a remarkably low precedence, so
  expressions like (MATCH(foo) && bar) would have an unexpected meaning
  w/o the parentheses around MATCH().
  
  Tested with:    md5(1)
  
  Revision  Changes    Path
  1.43      +3 -3      src/usr.bin/sed/process.c



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