Jim Meyering wrote:
Given code like if (foo) free (foo); remove the useless "if (foo) " part.
Likewise, given if (foo != NULL) free (foo); remove the useless "if" test.
ACK.
Rich.
--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley P
On Fri, Jan 25, 2008 at 11:17:09PM +0100, Jim Meyering wrote:
> Given code like if (foo) free (foo); remove the useless "if (foo) " part.
>
> Likewise, given if (foo != NULL) free (foo); remove the useless "if" test.
ACK - already reviewed the previous version of it.
Dan
--
|=- Red Hat, Enginee
Given code like if (foo) free (foo); remove the useless "if (foo) " part.
Likewise, given if (foo != NULL) free (foo); remove the useless "if" test.
* proxy/libvirt_proxy.c: Remove unnecessary "if" test before free.
* python/generator.py: Likewise.
* qemud/qemud.c: Likewise.
* src/buf.c: Likewise