summaryrefslogtreecommitdiffstats
path: root/debug.c
AgeCommit message (Collapse)Author
2013-07-23Parse only init_debug option with non-empty argument.Yousong Zhou
Matching empty string makes rm_so and rm_eo of struct regmatch_t have the same value, in this case both of them are 11. This causes a call to atoi("\0") whose return value 0 is just the initial value of 'debug'. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2013-07-08bugfix of error handling while open()Thomas Huehn
The normal return value from open() is a non-negative integer. In the case of an error, a value of -1 is returned instead. Signed-off-by: Thomas Huehn <thomas@net.t-labs.tu-berlin.de>
2013-03-13add debug handlerJohn Crispin