From 8c96da80b01fa21c86a336a17bda2cb01f1f071c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 14 Oct 1997 13:40:51 +0000 Subject: (keycompare): Move assignment out of if-expression. --- src/sort.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/sort.c') diff --git a/src/sort.c b/src/sort.c index e76da6d6b..8d7fe880e 100644 --- a/src/sort.c +++ b/src/sort.c @@ -1612,8 +1612,11 @@ keycompare (const struct line *a, const struct line *b) int x; x = nls_month_is_either_locale (texta, lena); - if (nls_month_found = !nls_months_collide[x]) - diff = x - getmonth (textb, lenb); + nls_month_found = !nls_months_collide[x]; + if (nls_month_found) + { + diff = x - getmonth (textb, lenb); + } else { diff = nls_month_is_either_locale (textb, lenb); -- cgit v1.2.3-54-g00ecf