From: Jim Meyering Date: Tue, 14 Oct 1997 13:40:51 +0000 (+0000) Subject: (keycompare): Move assignment out of if-expression. X-Git-Tag: TEXTUTILS-1_22c~262 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c96da80b01fa21c86a336a17bda2cb01f1f071c;p=thirdparty%2Fcoreutils.git (keycompare): Move assignment out of if-expression. --- diff --git a/src/sort.c b/src/sort.c index e76da6d6ba..8d7fe880e9 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);