summaryrefslogtreecommitdiffstats
path: root/sbin
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
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')
-rw-r--r--sbin/camcontrol/modeedit.c1
-rw-r--r--sbin/gvinum/gvinum.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sbin/camcontrol/modeedit.c b/sbin/camcontrol/modeedit.c
index 3fb9587..eaf87d6 100644
--- a/sbin/camcontrol/modeedit.c
+++ b/sbin/camcontrol/modeedit.c
@@ -394,6 +394,7 @@ load_format(const char *pagedb_path, int page)
SLIST_INIT(&namelist);
+ c = '\0';
depth = 0;
lineno = 0;
found = 0;
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