]> granicus.if.org Git - transmission/commit
Remove side effects from right hand operands of && or ||
authorMike Gelfand <mikedld@mikedld.com>
Sun, 17 Mar 2019 06:09:08 +0000 (09:09 +0300)
committerMike Gelfand <mikedld@mikedld.com>
Sun, 17 Mar 2019 06:09:08 +0000 (09:09 +0300)
commit97a0fed7340279ed211d14596d1162a8c07c509d
tree41a856a0935c132d1f39cb69ac43dd8b258ee6cb
parent17307e748499721664e99dc92332a553d58f02df
Remove side effects from right hand operands of && or ||

* MISRA C:2004, 12.4 - The right-hand operand of a logical && or || operator
  shall not contain side effects.
* MISRA C++:2008, 5-14-1 - The right hand operand of a logical && or ||
  operator shall not contain side effects.
* MISRA C:2012, 13.5 - The right hand operand of a logical && or || operator
  shall not contain persistent side effects
* CERT, EXP02-C. - Be aware of the short-circuit behavior of the logical AND
  and OR operators
libtransmission/libtransmission-test.c
libtransmission/makemeta.c
libtransmission/metainfo.c
libtransmission/peer-msgs.c
libtransmission/rpc-server.c
libtransmission/rpcimpl.c
libtransmission/session.c
libtransmission/variant.c
libtransmission/webseed.c