]> granicus.if.org Git - procps-ng/commit
libproc-ng & ps: fix warning reported by smatch
authorSami Kerola <kerolasa@iki.fi>
Tue, 11 Oct 2011 20:01:19 +0000 (22:01 +0200)
committerSami Kerola <kerolasa@iki.fi>
Tue, 20 Dec 2011 16:30:50 +0000 (17:30 +0100)
commit9057b18a32583903df730cf49c8e065ca6015cbb
tree5337dfdd7c6c3de37704581935ffd0d331acf374
parentc1fa3bfce865665ab7645255ed68dc0d79a70822
libproc-ng & ps: fix warning reported by smatch

proc/ksym.c +279 read_file(54) info: redundant null check on buf calling free()
proc/ksym.c +330 parse_ksyms(41) info: redundant null check on ksyms_data calling free()
proc/ksym.c +332 parse_ksyms(43) info: redundant null check on ksyms_index calling free()
proc/ksym.c +451 sysmap_mmap(110) info: redundant null check on sysmap_index calling free()
proc/procps.h:74:5: warning: undefined preprocessor identifier 'SHARED'
proc/slab.c +145 parse_slabinfo20(24) error: potential null derefence 'prev'.
proc/slab.c +222 parse_slabinfo11(21) error: potential null derefence 'prev'.
ps/stacktrace.c +131 debug(6) error: snprintf() is printing too much 99 vs 16

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
proc/alloc.c
proc/ksym.c
proc/procps.h
proc/slab.c
ps/stacktrace.c