Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-9]: src/distrib/utils/libhack Pull up following revision(s) (requ...



details:   https://anonhg.NetBSD.org/src/rev/fac7e2c7b1d6
branches:  netbsd-9
changeset: 458113:fac7e2c7b1d6
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Aug 02 05:39:28 2019 +0000

description:
Pull up following revision(s) (requested by martin in ticket #2):
        distrib/utils/libhack/multibyte.c: revision 1.9
Avoid using an unitialized variable

diffstat:

 distrib/utils/libhack/multibyte.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (21 lines):

diff -r c37a0fd5d891 -r fac7e2c7b1d6 distrib/utils/libhack/multibyte.c
--- a/distrib/utils/libhack/multibyte.c Tue Jul 30 16:52:10 2019 +0000
+++ b/distrib/utils/libhack/multibyte.c Fri Aug 02 05:39:28 2019 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: multibyte.c,v 1.8 2019/07/28 10:21:18 martin Exp $      */
+/*      $NetBSD: multibyte.c,v 1.8.2.1 2019/08/02 05:39:28 msaitoh Exp $      */
 
 /*
  * Ignore all multibyte sequences, removes all the citrus code.
@@ -246,10 +246,8 @@
        if (s == NULL)
                return 0;
 
-       while (*s) {
+       for (l = 0; *s; l++)
                s++;
-               l++;
-       }
 
        return l;
 }



Home | Main Index | Thread Index | Old Index