Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/cgdconfig fix possibly uninitialized variable.
details: https://anonhg.NetBSD.org/src/rev/e7820c523a0d
branches: trunk
changeset: 334910:e7820c523a0d
user: christos <christos%NetBSD.org@localhost>
date: Sun Dec 14 23:27:14 2014 +0000
description:
fix possibly uninitialized variable.
diffstat:
sbin/cgdconfig/cgdconfig.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0e3f759eacb8 -r e7820c523a0d sbin/cgdconfig/cgdconfig.c
--- a/sbin/cgdconfig/cgdconfig.c Sun Dec 14 23:25:07 2014 +0000
+++ b/sbin/cgdconfig/cgdconfig.c Sun Dec 14 23:27:14 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgdconfig.c,v 1.38 2014/12/14 23:25:07 christos Exp $ */
+/* $NetBSD: cgdconfig.c,v 1.39 2014/12/14 23:27:14 christos Exp $ */
/*-
* Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
#ifndef lint
__COPYRIGHT("@(#) Copyright (c) 2002, 2003\
The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: cgdconfig.c,v 1.38 2014/12/14 23:25:07 christos Exp $");
+__RCSID("$NetBSD: cgdconfig.c,v 1.39 2014/12/14 23:27:14 christos Exp $");
#endif
#include <err.h>
@@ -513,7 +513,7 @@
int ret;
char cgdname[PATH_MAX];
char devicename[PATH_MAX];
- const char *dev;
+ const char *dev = NULL; /* XXX: gcc */
if (argc == 2 || argc == 3) {
dev = getfsspecname(devicename, sizeof(devicename), argv[1]);
Home |
Main Index |
Thread Index |
Old Index