Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/nvi/dist/ipc CID 1132783: Fix uninitialized var...
details: https://anonhg.NetBSD.org/src/rev/58b46370822c
branches: trunk
changeset: 791652:58b46370822c
user: christos <christos%NetBSD.org@localhost>
date: Wed Nov 27 17:53:00 2013 +0000
description:
CID 1132783: Fix uninitialized variable
diffstat:
external/bsd/nvi/dist/ipc/ip_trans.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r d8dd72415baa -r 58b46370822c external/bsd/nvi/dist/ipc/ip_trans.c
--- a/external/bsd/nvi/dist/ipc/ip_trans.c Wed Nov 27 17:51:04 2013 +0000
+++ b/external/bsd/nvi/dist/ipc/ip_trans.c Wed Nov 27 17:53:00 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_trans.c,v 1.2 2013/11/22 15:52:05 christos Exp $ */
+/* $NetBSD: ip_trans.c,v 1.3 2013/11/27 17:53:00 christos Exp $ */
/*-
* Copyright (c) 1996
* Keith Bostic. All rights reserved.
@@ -128,6 +128,7 @@
const char **vsp;
IPFunc fun;
+ memset(&ipb, 0, sizeof(ipb));
for (s_bp = bp, len = *lenp; len > 0;) {
fmt = ipfuns[(ipb.code = bp[0])-1].format;
Home |
Main Index |
Thread Index |
Old Index