Module Name: src
Committed By: jmcneill
Date: Sun Sep 4 12:34:50 UTC 2011
Modified Files:
src/lib/libutil: getlabelsector.c
Log Message:
getlabelusesmbr: initialize 'oldlenp' parameter to sysctlbyname
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libutil/getlabelsector.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libutil/getlabelsector.c
diff -u src/lib/libutil/getlabelsector.c:1.4 src/lib/libutil/getlabelsector.c:1.5
--- src/lib/libutil/getlabelsector.c:1.4 Tue Aug 30 12:39:52 2011
+++ src/lib/libutil/getlabelsector.c Sun Sep 4 12:34:49 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: getlabelsector.c,v 1.4 2011/08/30 12:39:52 bouyer Exp $ */
+/* $NetBSD: getlabelsector.c,v 1.5 2011/09/04 12:34:49 jmcneill Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: getlabelsector.c,v 1.4 2011/08/30 12:39:52 bouyer Exp $");
+__RCSID("$NetBSD: getlabelsector.c,v 1.5 2011/09/04 12:34:49 jmcneill Exp $");
#endif
#include <sys/param.h>
@@ -80,6 +80,7 @@
int use;
size_t uselen;
+ uselen = sizeof(use);
if (sysctlbyname("kern.labelusesmbr", &use, &uselen,
NULL, (size_t)0) < 0)
return (-1);