Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen Initialize 'clen' to 0, to avoid "may be used u...
details: https://anonhg.NetBSD.org/src/rev/4fdeb72d1fa9
branches: trunk
changeset: 785069:4fdeb72d1fa9
user: riz <riz%NetBSD.org@localhost>
date: Wed Feb 20 18:09:13 2013 +0000
description:
Initialize 'clen' to 0, to avoid "may be used uninitialized" warning.
diffstat:
lib/libc/gen/vis.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a33f820dc5d2 -r 4fdeb72d1fa9 lib/libc/gen/vis.c
--- a/lib/libc/gen/vis.c Wed Feb 20 17:15:08 2013 +0000
+++ b/lib/libc/gen/vis.c Wed Feb 20 18:09:13 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vis.c,v 1.55 2013/02/20 17:15:08 christos Exp $ */
+/* $NetBSD: vis.c,v 1.56 2013/02/20 18:09:13 riz Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -57,7 +57,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: vis.c,v 1.55 2013/02/20 17:15:08 christos Exp $");
+__RCSID("$NetBSD: vis.c,v 1.56 2013/02/20 18:09:13 riz Exp $");
#endif /* LIBC_SCCS and not lint */
#ifdef __FBSDID
__FBSDID("$FreeBSD$");
@@ -326,7 +326,7 @@
size_t len, olen;
wint_t c, bmsk, wmsk;
visfun_t f;
- int clen, cerr = 0, error = -1, i, shft;
+ int clen = 0, cerr = 0, error = -1, i, shft;
ssize_t mbslength, maxolen;
_DIAGASSERT(mbdst != NULL);
Home |
Main Index |
Thread Index |
Old Index