cvs commit: src/usr.bin/sed process.c

Yar Tikhiy yar at FreeBSD.org
Mon Apr 2 06:47:49 UTC 2007


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


More information about the cvs-src mailing list