aboutsummaryrefslogtreecommitdiff
path: root/sbin/gvinum/gvinum.c
diff options
context:
space:
mode:
authorUlrich Spörlein <uqs@FreeBSD.org>2010-06-11 17:02:57 +0000
committerUlrich Spörlein <uqs@FreeBSD.org>2010-06-11 17:02:57 +0000
commitee4912eb07925d5602645d09aa41fb39f7909c24 (patch)
treecdbcf9d1abfa8c7fe9340a2d243c6eafce75d545 /sbin/gvinum/gvinum.c
parente762f6667276d2d3b260c5625cd403638ea8a53d (diff)
downloadsrc-ee4912eb07925d5602645d09aa41fb39f7909c24.tar.gz
src-ee4912eb07925d5602645d09aa41fb39f7909c24.zip
Initialize variables before usage.
Found by: clang static analyzer Found by: Coverity Prevent[tm] (CID 7736, 7760)
Notes
Notes: svn path=/head/; revision=209051
Diffstat (limited to 'sbin/gvinum/gvinum.c')
-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 041f1409ccde..3b350f8151ac 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) {