Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3]: src/usr.sbin/lpr/lpd Pull up revision 1.51 (requested by luke...
details: https://anonhg.NetBSD.org/src/rev/aabba8cde7cf
branches: netbsd-3
changeset: 576236:aabba8cde7cf
user: snj <snj%NetBSD.org@localhost>
date: Wed Jun 15 05:50:00 2005 +0000
description:
Pull up revision 1.51 (requested by lukem in ticket #416):
Ensure s is initialized before testing (none of the sockets may be ready
so it might not be setup).
Detected with gcc -Wuninitialized.
diffstat:
usr.sbin/lpr/lpd/lpd.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r dd343e95ef08 -r aabba8cde7cf usr.sbin/lpr/lpd/lpd.c
--- a/usr.sbin/lpr/lpd/lpd.c Wed Jun 15 05:46:40 2005 +0000
+++ b/usr.sbin/lpr/lpd/lpd.c Wed Jun 15 05:50:00 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lpd.c,v 1.50 2004/10/30 08:44:26 dsl Exp $ */
+/* $NetBSD: lpd.c,v 1.50.2.1 2005/06/15 05:50:00 snj Exp $ */
/*
* Copyright (c) 1983, 1993, 1994
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)lpd.c 8.7 (Berkeley) 5/10/95";
#else
-__RCSID("$NetBSD: lpd.c,v 1.50 2004/10/30 08:44:26 dsl Exp $");
+__RCSID("$NetBSD: lpd.c,v 1.50.2.1 2005/06/15 05:50:00 snj Exp $");
#endif
#endif /* not lint */
@@ -319,6 +319,7 @@
syslog(LOG_WARNING, "poll: %m");
continue;
}
+ s = -1;
for (i = 0; i < nfds; i++)
if (socks[i].revents & POLLIN) {
fromlen = sizeof(from);
Home |
Main Index |
Thread Index |
Old Index