Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Clear memory as intended. Fixes PR#46372.
details: https://anonhg.NetBSD.org/src/rev/e9b50b2b8506
branches: trunk
changeset: 788860:e9b50b2b8506
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu Jul 25 04:21:47 2013 +0000
description:
Clear memory as intended. Fixes PR#46372.
diffstat:
sys/dev/ic/mm58167.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 3752648d8590 -r e9b50b2b8506 sys/dev/ic/mm58167.c
--- a/sys/dev/ic/mm58167.c Wed Jul 24 15:38:07 2013 +0000
+++ b/sys/dev/ic/mm58167.c Thu Jul 25 04:21:47 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mm58167.c,v 1.14 2009/12/12 16:12:05 tsutsui Exp $ */
+/* $NetBSD: mm58167.c,v 1.15 2013/07/25 04:21:47 msaitoh Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mm58167.c,v 1.14 2009/12/12 16:12:05 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mm58167.c,v 1.15 2013/07/25 04:21:47 msaitoh Exp $");
#include <sys/param.h>
#include <sys/malloc.h>
@@ -68,7 +68,7 @@
aprint_normal(": mm58167");
handle = &sc->_mm58167_todr_handle;
- memset(handle, 0, sizeof(handle));
+ memset(handle, 0, sizeof(*handle));
handle->cookie = sc;
handle->todr_gettime_ymdhms = mm58167_gettime_ymdhms;
handle->todr_settime_ymdhms = mm58167_settime_ymdhms;
Home |
Main Index |
Thread Index |
Old Index