[PATCH 3/3] sort: allow 0 as key's end_char

From: Jakob Kramer <jakob.kramer_AT_gmx.de>
Date: Sun, 5 Apr 2015 20:33:07 +0200

---
 sort.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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)
-- 
1.9.1
--------------030703040900010307070000--
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 05 2015 - 21:00:05 CEST