]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(keycompare): Move assignment out of if-expression.
authorJim Meyering <jim@meyering.net>
Tue, 14 Oct 1997 13:40:51 +0000 (13:40 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 14 Oct 1997 13:40:51 +0000 (13:40 +0000)
src/sort.c

index e76da6d6ba6e4049f9357bc8efd168251bdd4cd0..8d7fe880e9b7ede162b1d82b65bc1752e21bc6ca 100644 (file)
@@ -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);