Module Name: src
Committed By: kre
Date: Wed Mar 22 19:36:04 UTC 2017
Modified Files:
src/lib/libc/gen: xsyslog.c
Log Message:
Unbreak build, init variable (not a false alarm for this one.)
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/gen/xsyslog.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/gen/xsyslog.c
diff -u src/lib/libc/gen/xsyslog.c:1.3 src/lib/libc/gen/xsyslog.c:1.4
--- src/lib/libc/gen/xsyslog.c:1.3 Wed Mar 22 17:52:36 2017
+++ src/lib/libc/gen/xsyslog.c Wed Mar 22 19:36:04 2017
@@ -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 @@ _vxsyslogp_r(int pri, struct syslog_fun
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)) {