Avoid side effects in assert expressions
authorGreg Hudson <ghudson@mit.edu>
Fri, 9 Mar 2012 18:30:31 +0000 (18:30 +0000)
committerGreg Hudson <ghudson@mit.edu>
Fri, 9 Mar 2012 18:30:31 +0000 (18:30 +0000)
commit221cd4a23691601a14500bc00146c265b50bdc94
treee54d818ccf2abb3956881ffb6281f75bb48122eb
parent0e5252ec1778d3421122f2ee95c88e8b1b77e383
Avoid side effects in assert expressions

asserts may be compiled out with -DNDEBUG, so it's wrong to use an
assert expression with an important side effect.

(We also have scores of side-effecting asserts in test programs, but
those are less important and can be dealt with separately.)

ticket: 7105

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25760 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/apputils/net-server.c
src/lib/crypto/krb/cf2.c
src/util/et/com_err.c