summaryrefslogtreecommitdiffstats
path: root/usr.bin/procstat
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2008-12-19 06:47:59 +0000
committermarcus <marcus@FreeBSD.org>2008-12-19 06:47:59 +0000
commit2368f18ac465224da2b90e0037f39d141448e123 (patch)
treefe6e8c1d4ff300f640bf318bf444c43c3ddc2489 /usr.bin/procstat
parentfba34872ecb4a70ea6cebcc3e9c772b8d676df27 (diff)
downloadFreeBSD-src-2368f18ac465224da2b90e0037f39d141448e123.zip
FreeBSD-src-2368f18ac465224da2b90e0037f39d141448e123.tar.gz
Initialize the cntp pointer to 0 prior to doing any work so that callers
don't try to iterate through garbage or NULL memory. Additionally, return NULL instead of 0 on error. Reviewed by: peter Approved by: peter
Diffstat (limited to 'usr.bin/procstat')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud