Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/ia64/stand/ia64/ski uninitialized variable, found b...
details: https://anonhg.NetBSD.org/src/rev/efe5ebe26217
branches: trunk
changeset: 354683:efe5ebe26217
user: maxv <maxv%NetBSD.org@localhost>
date: Sun Jun 25 12:04:37 2017 +0000
description:
uninitialized variable, found by Mootja
diffstat:
sys/arch/ia64/stand/ia64/ski/devicename.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (19 lines):
diff -r a87df10d4247 -r efe5ebe26217 sys/arch/ia64/stand/ia64/ski/devicename.c
--- a/sys/arch/ia64/stand/ia64/ski/devicename.c Sun Jun 25 12:02:59 2017 +0000
+++ b/sys/arch/ia64/stand/ia64/ski/devicename.c Sun Jun 25 12:04:37 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: devicename.c,v 1.8 2016/08/15 09:06:39 maxv Exp $ */
+/* $NetBSD: devicename.c,v 1.9 2017/06/25 12:04:37 maxv Exp $ */
/*-
* Copyright (c) 1998 Michael Smith <msmith%freebsd.org@localhost>
@@ -236,8 +236,7 @@
break;
case DEVT_NET:
- /* XXX XXX XXX: Yay, 'len' is not initialized here */
- snprintf(buf, buflen - len, "%s%d:", dev->d_dev->dv_name, dev->d_kind.netif.unit);
+ snprintf(buf, buflen, "%s%d:", dev->d_dev->dv_name, dev->d_kind.netif.unit);
break;
}
return(buf);
Home |
Main Index |
Thread Index |
Old Index