Module Name:    src
Committed By:   msaitoh
Date:           Fri Aug  2 05:39:28 UTC 2019

Modified Files:
        src/distrib/utils/libhack [netbsd-9]: multibyte.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.8.2.1 src/distrib/utils/libhack/multibyte.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/utils/libhack/multibyte.c
diff -u src/distrib/utils/libhack/multibyte.c:1.8 src/distrib/utils/libhack/multibyte.c:1.8.2.1
--- src/distrib/utils/libhack/multibyte.c:1.8	Sun Jul 28 10:21:18 2019
+++ src/distrib/utils/libhack/multibyte.c	Fri Aug  2 05:39:28 2019
@@ -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 @@ wcslen(const wchar_t *s)
 	if (s == NULL)
 		return 0;
 
-	while (*s) {
+	for (l = 0; *s; l++)
 		s++;
-		l++;
-	}
 
 	return l;
 }

Reply via email to