]> granicus.if.org Git - procps-ng/commit
library: Remove dead branch in file2strvec
authorCraig Small <csmall@dropbear.xyz>
Sat, 14 May 2016 12:43:19 +0000 (22:43 +1000)
committerCraig Small <csmall@dropbear.xyz>
Sat, 14 May 2016 12:43:19 +0000 (22:43 +1000)
commitf85d9a2b95548eca7b61c0643185fa418a75d8c1
treee1d6b83de923774150ef426faa679b716c7365d8
parent4f6b8c9c60e730858dfd1cc086f39ea783ae00c9
library: Remove dead branch in file2strvec

A while loop used n >=0
A branch inside the loop had a test for n<0
That's never going to happen!
So the branch must go. There is similiar code outside
the branch. Yes, I miss pythons while else here.

Also cleaned up the ***-awful indentation this function had.
No wonder that branch lived for so long there.

References:
 Coverity #99119

Signed-off-by: Craig Small <csmall@dropbear.xyz>
proc/readproc.c