]> git.ipfire.org Git - thirdparty/util-linux.git/commit
setarch: do not use -1 as array index [cppcheck]
authorSami Kerola <kerolasa@iki.fi>
Sat, 9 Jun 2012 20:45:27 +0000 (22:45 +0200)
committerSami Kerola <kerolasa@iki.fi>
Sat, 9 Jun 2012 20:51:10 +0000 (22:51 +0200)
commit50f32c363ac51f648c27e423ffe2602047dde433
tree42b2e07055e09da2509bee3a731cc5b1251c00e8
parent0e60bc9b152a3414c04c50523b5bf555665a6cea
setarch: do not use -1 as array index [cppcheck]

Negative array index does technically work, but looks awkward and
can confuse static analyser such as cppcheck.

[sys-utils/setarch.c:267]: (error) Array index -1 is out of bounds

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/setarch.c