sbase

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

commit 9018fe87c717d874fe0f3fbaebc452697207ead6
parent 992322cf3627b821627f5f877c391037b385b5ed
Author: Jakob Kramer <jakob.kramer@gmx.de>
Date:   Sun Apr  5 20:33:07 +0200

sort: allow 0 as key's end_char

Diffstat:
sort.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)