Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amiga/dev Dont write through a zero pointer (when i...
details: https://anonhg.NetBSD.org/src/rev/f7afd4610739
branches: trunk
changeset: 467767:f7afd4610739
user: is <is%NetBSD.org@localhost>
date: Sun Mar 28 21:39:59 1999 +0000
description:
Dont write through a zero pointer (when in probe mode of a2kugettod()).
diffstat:
sys/arch/amiga/dev/a2kbbc.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r c8ae6107e05b -r f7afd4610739 sys/arch/amiga/dev/a2kbbc.c
--- a/sys/arch/amiga/dev/a2kbbc.c Sun Mar 28 21:33:38 1999 +0000
+++ b/sys/arch/amiga/dev/a2kbbc.c Sun Mar 28 21:39:59 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: a2kbbc.c,v 1.6 1999/03/14 22:42:12 is Exp $ */
+/* $NetBSD: a2kbbc.c,v 1.7 1999/03/28 21:39:59 is Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -177,8 +177,10 @@
return (0);
secs = clock_ymdhms_to_secs(&dt);
- tvp->tv_sec = secs;
- tvp->tv_usec = 0;
+ if (tvp) {
+ tvp->tv_sec = secs;
+ tvp->tv_usec = 0;
+ }
return (1);
}
Home |
Main Index |
Thread Index |
Old Index