Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/sdpd Fix memset usage.
details: https://anonhg.NetBSD.org/src/rev/56661ed705e6
branches: trunk
changeset: 766740:56661ed705e6
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Jul 01 03:07:21 2011 +0000
description:
Fix memset usage.
diffstat:
usr.sbin/sdpd/server.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 1fde9be0d635 -r 56661ed705e6 usr.sbin/sdpd/server.c
--- a/usr.sbin/sdpd/server.c Fri Jul 01 02:59:05 2011 +0000
+++ b/usr.sbin/sdpd/server.c Fri Jul 01 03:07:21 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: server.c,v 1.9 2010/10/18 20:43:23 plunky Exp $ */
+/* $NetBSD: server.c,v 1.10 2011/07/01 03:07:21 joerg Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: server.c,v 1.9 2010/10/18 20:43:23 plunky Exp $");
+__RCSID("$NetBSD: server.c,v 1.10 2011/07/01 03:07:21 joerg Exp $");
#include <sys/select.h>
#include <sys/stat.h>
@@ -98,7 +98,7 @@
assert(srv != NULL);
assert(control != NULL);
- memset(srv, 0, sizeof(srv));
+ memset(srv, 0, sizeof(*srv));
FD_ZERO(&srv->fdset);
srv->sgroup = sgroup;
Home |
Main Index |
Thread Index |
Old Index