sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 061932a31b028fca69214ff84ee5c7747fd19435
parent bddb7200b8e410599c19dfc5ca5975d5e6f749db
Author: Jakob Kramer <jakob.kramer@gmx.de>
Date:   Sun,  5 Apr 2015 20:33:07 +0200

sort: allow 0 as key's end_char

Diffstat:
Msort.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sort.c b/sort.c @@ -161,7 +161,7 @@ parse_keydef(struct keydef *kd, char *s, int flags) return -1; if (*rest == '.') { kd->end_char = strtol(rest+1, &rest, 10); - if (kd->end_char < 1) + if (kd->end_char < 0) return -1; } if (parse_flags(&rest, &kd->flags, MOD_ENDB) < 0)