Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/libhack Avoid using an unitialized variable
details: https://anonhg.NetBSD.org/src/rev/6825d83811f5
branches: trunk
changeset: 964426:6825d83811f5
user: martin <martin%NetBSD.org@localhost>
date: Thu Aug 01 12:28:53 2019 +0000
description:
Avoid using an unitialized variable
diffstat:
distrib/utils/libhack/multibyte.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (21 lines):
diff -r 711f13d1ca06 -r 6825d83811f5 distrib/utils/libhack/multibyte.c
--- a/distrib/utils/libhack/multibyte.c Thu Aug 01 09:37:34 2019 +0000
+++ b/distrib/utils/libhack/multibyte.c Thu Aug 01 12:28:53 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.9 2019/08/01 12:28:53 martin 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