]> code.delx.au - pulseaudio/commit
Fix checking for NULL after usage
authorAndy Shevchenko <ext-andriy.shevchenko@nokia.com>
Fri, 28 Aug 2009 12:16:54 +0000 (15:16 +0300)
committerLennart Poettering <lennart@poettering.net>
Fri, 28 Aug 2009 15:12:44 +0000 (17:12 +0200)
commit300384ce0aa79bd86cdafa88848c6e944c0353b5
treeeb95d8af827f8aed4e3801046e4f922ff4dd59a6
parentae383539d7001d59044e6d7e06e9270b65ae762b
Fix checking for NULL after usage

The pa_xmalloc calls oom() in case of NULL pointer returned by malloc() on one
hand and dereferencing of pointer is happen early than actual check on other
hand. Thus, just remove useless checks.
src/pulse/ext-stream-restore.c
src/pulsecore/protocol-simple.c
src/pulsecore/resampler.c
src/pulsecore/sound-file-stream.c