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/a2206046576d
branches: netbsd-9
changeset: 462279:a2206046576d
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 0c2efa50bc5c -r a2206046576d 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