Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys avoid some uninitialised variable warnings.
details: https://anonhg.NetBSD.org/src/rev/460fe0f3ee62
branches: trunk
changeset: 767079:460fe0f3ee62
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Jul 08 09:32:45 2011 +0000
description:
avoid some uninitialised variable warnings.
diffstat:
sys/dev/pud/pud.c | 6 +++---
sys/kern/sys_module.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r d460c90e02a7 -r 460fe0f3ee62 sys/dev/pud/pud.c
--- a/sys/dev/pud/pud.c Fri Jul 08 09:31:35 2011 +0000
+++ b/sys/dev/pud/pud.c Fri Jul 08 09:32:45 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pud.c,v 1.10 2011/02/07 03:14:28 jakllsch Exp $ */
+/* $NetBSD: pud.c,v 1.11 2011/07/08 09:32:45 mrg Exp $ */
/*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pud.c,v 1.10 2011/02/07 03:14:28 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pud.c,v 1.11 2011/07/08 09:32:45 mrg Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -81,7 +81,7 @@
uint8_t **data, size_t *dlen, void **cookie)
{
struct pud_dev *pd = this;
- struct pud_touser *putp;
+ struct pud_touser *putp = NULL;
int error = 0;
mutex_enter(&pd->pd_mtx);
diff -r d460c90e02a7 -r 460fe0f3ee62 sys/kern/sys_module.c
--- a/sys/kern/sys_module.c Fri Jul 08 09:31:35 2011 +0000
+++ b/sys/kern/sys_module.c Fri Jul 08 09:32:45 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_module.c,v 1.12 2010/08/21 13:19:39 pgoyette Exp $ */
+/* $NetBSD: sys_module.c,v 1.13 2011/07/08 09:32:45 mrg Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_module.c,v 1.12 2010/08/21 13:19:39 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_module.c,v 1.13 2011/07/08 09:32:45 mrg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -50,7 +50,7 @@
char *props;
int error;
prop_dictionary_t dict;
- size_t propslen;
+ size_t propslen = 0;
if ((ml->ml_props != NULL && ml->ml_propslen == 0) ||
(ml->ml_props == NULL && ml->ml_propslen > 0)) {
Home |
Main Index |
Thread Index |
Old Index