chiark / gitweb /
prlimit.c: Fix careless use of `lt' variable.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 15 Dec 2011 00:55:01 +0000 (00:55 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 15 Dec 2011 01:12:46 +0000 (01:12 +0000)
commit8ec37147b68377e120e850815010cfe625261ed3
tree19e58a3f2f24066925641ae8de09be133382a06c
parent4254eec2d9c48dfe5bb40f11fdb95f6510c20f47
prlimit.c: Fix careless use of `lt' variable.

The `lt' variable is used in the second pass for actually printing
limits, but its value is simply debris from the first command-line
parsing pass and has no useful meaning.

Since it's a convenient abbreviation, initialize it properly in the
second-pass loop and use it consistently.

Spotted by GCC.
prlimit.c