sbase

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

commit ab2a713570746efe15a8c5be2b30effba2a5e749
parent 11615721575baf7c37105a75db1a724011326edd
Author: FRIGN <dev@frign.de>
Date:   Mon Mar  7 01:43:26 +0100

No need for += when res is 0 anyway

Diffstat:
sort.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sort.c b/sort.c @@ -195,8 +195,8 @@ linecmp(struct linebufline *a, struct linebufline *b) } else { if (!(res = memcmp(col1.data, col2.data, MIN(col1.len, col2.len)))) { - res += col1.data[MIN(col1.len, col2.len)] - - col2.data[MIN(col1.len, col2.len)]; + res = col1.data[MIN(col1.len, col2.len)] - + col2.data[MIN(col1.len, col2.len)]; } }