author | Sebastian Harl <sh@tokkee.org> | |
Mon, 9 May 2011 06:17:03 +0000 (08:17 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Mon, 9 May 2011 06:17:03 +0000 (08:17 +0200) | ||
commit | f2c52551bbfe859c05bfb86edc1274664a6bb052 | |
tree | 018c550a1d8dbc6e737ef7dcd402b333092824b0 | tree | snapshot |
parent | 2654e60d1ad213e9c8c1153593b7708233251a02 | commit | diff |
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>
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 | diff | blob | history |