summaryrefslogtreecommitdiffstats
path: root/sbin/camcontrol
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/camcontrol
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/camcontrol')
-rw-r--r--sbin/camcontrol/modeedit.c1
1 files changed, 1 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;
OpenPOWER on IntegriCloud