Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen Unbreak build, init variable (not a false alarm...
details: https://anonhg.NetBSD.org/src/rev/677fa1f19bbc
branches: trunk
changeset: 352241:677fa1f19bbc
user: kre <kre%NetBSD.org@localhost>
date: Wed Mar 22 19:36:04 2017 +0000
description:
Unbreak build, init variable (not a false alarm for this one.)
diffstat:
lib/libc/gen/xsyslog.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 557310f7c541 -r 677fa1f19bbc lib/libc/gen/xsyslog.c
--- a/lib/libc/gen/xsyslog.c Wed Mar 22 19:13:40 2017 +0000
+++ b/lib/libc/gen/xsyslog.c Wed Mar 22 19:36:04 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xsyslog.c,v 1.3 2017/03/22 17:52:36 roy Exp $ */
+/* $NetBSD: xsyslog.c,v 1.4 2017/03/22 19:36:04 kre Exp $ */
/*
* Copyright (c) 1983, 1988, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)syslog.c 8.5 (Berkeley) 4/29/95";
#else
-__RCSID("$NetBSD: xsyslog.c,v 1.3 2017/03/22 17:52:36 roy Exp $");
+__RCSID("$NetBSD: xsyslog.c,v 1.4 2017/03/22 19:36:04 kre Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -154,6 +154,8 @@
struct iovec iov[7]; /* prog + [ + pid + ]: + fmt + crlf */
int opened, iovcnt;
+ opened = 0;
+
#define INTERNALLOG LOG_ERR|LOG_CONS|LOG_PERROR|LOG_PID
/* Check for invalid bits. */
if (pri & ~(LOG_PRIMASK|LOG_FACMASK)) {
Home |
Main Index |
Thread Index |
Old Index