summaryrefslogtreecommitdiffstats
path: root/sbin/gvinum
diff options
context:
space:
mode:
authoruqs <uqs@FreeBSD.org>2010-06-11 17:02:57 +0000
committeruqs <uqs@FreeBSD.org>2010-06-11 17:02:57 +0000
commit392b002279067173fe32aa39afb0d5b699a64736 (patch)
treecdbcf9d1abfa8c7fe9340a2d243c6eafce75d545 /sbin/gvinum
parentab25f8e13afd25fa86f75b8f51724e49ab9d83e8 (diff)
downloadFreeBSD-src-392b002279067173fe32aa39afb0d5b699a64736.zip
FreeBSD-src-392b002279067173fe32aa39afb0d5b699a64736.tar.gz
Initialize variables before usage.
Found by: clang static analyzer Found by: Coverity Prevent[tm] (CID 7736, 7760)
Diffstat (limited to 'sbin/gvinum')
-rw-r--r--sbin/gvinum/gvinum.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/gvinum/gvinum.c b/sbin/gvinum/gvinum.c
index 041f140..3b350f8 100644
--- a/sbin/gvinum/gvinum.c
+++ b/sbin/gvinum/gvinum.c
@@ -644,6 +644,7 @@ gvinum_detach(int argc, char **argv)
struct gctl_req *req;
int flags, i;
+ flags = 0;
optreset = 1;
optind = 1;
while ((i = getopt(argc, argv, "f")) != -1) {
OpenPOWER on IntegriCloud