]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Tweak.
authorBruno Haible <bruno@clisp.org>
Sat, 2 Mar 2002 03:23:44 +0000 (03:23 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Jun 2009 23:25:30 +0000 (01:25 +0200)
lib/ChangeLog
lib/strncasecmp.c

index 32ae0d7450143e3b04595a97014c39bf55f8c40e..4953d02747e48b1b4319652d3eebbc547f034554 100644 (file)
@@ -1,3 +1,7 @@
+2002-02-21  Bruno Haible  <bruno@clisp.org>
+
+       * strncasecmp.c (__strncasecmp): Trivial simplification.
+
 2002-02-24  Bruno Haible  <bruno@clisp.org>
 
        * libstdarg.h: New file.
index db8570cd354d536d0b27bdba05290c19a342a1f8..cb331c4409229a8b90d425ce70420abc4e6a75ef 100644 (file)
@@ -70,7 +70,7 @@ __strncasecmp (s1, s2, n LOCALE_PARAM)
       c1 = TOLOWER (*p1++);
       c2 = TOLOWER (*p2++);
       if (c1 == '\0' || c1 != c2)
-       return c1 - c2;
+       break;
     } while (--n > 0);
 
   return c1 - c2;