Code

Use error codes when checking parse_int() return value sh/next
authorSebastian Harl <sh@tokkee.org>
Mon, 9 May 2011 06:17:03 +0000 (08:17 +0200)
committerSebastian Harl <sh@tokkee.org>
Mon, 9 May 2011 06:17:03 +0000 (08:17 +0200)
commitf2c52551bbfe859c05bfb86edc1274664a6bb052
tree018c550a1d8dbc6e737ef7dcd402b333092824b0
parent2654e60d1ad213e9c8c1153593b7708233251a02
Use error codes when checking parse_int() return value

Usually, OPT_OK != OK, so we'd usually treat success as an error, leading e.g.
to errors like "Unable to parse '42' as a line number".

Reported by Christian Ohm in Debian bug #626124.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
tig.c