diff options
author | marcus <marcus@FreeBSD.org> | 2008-12-19 06:47:59 +0000 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2008-12-19 06:47:59 +0000 |
commit | 2368f18ac465224da2b90e0037f39d141448e123 (patch) | |
tree | fe6e8c1d4ff300f640bf318bf444c43c3ddc2489 /usr.bin/procstat | |
parent | fba34872ecb4a70ea6cebcc3e9c772b8d676df27 (diff) | |
download | FreeBSD-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