[hackers] [sbase] sort: allow 0 as key's end_char || Jakob Kramer

From: <git_AT_suckless.org>
Date: Mon, 6 Apr 2015 18:16:00 +0200 (CEST)

commit 061932a31b028fca69214ff84ee5c7747fd19435
Author: Jakob Kramer <jakob.kramer_AT_gmx.de>
Date: Sun Apr 5 20:33:07 2015 +0200

    sort: allow 0 as key's end_char

diff --git a/sort.c b/sort.c
index c2beb72..3697b42 100644
--- a/sort.c
+++ b/sort.c
_AT_@ -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)
Received on Mon Apr 06 2015 - 18:16:00 CEST

This archive was generated by hypermail 2.3.0 : Mon Apr 06 2015 - 18:24:23 CEST