summaryrefslogtreecommitdiffstats
path: root/usr.bin/tset
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2005-05-29 15:49:53 +0000
committercharnier <charnier@FreeBSD.org>2005-05-29 15:49:53 +0000
commit45f96a1a02b6242bd9432315ff8fabcc24071748 (patch)
tree24dc4b50a6ccda23661e3dee25191092795ee355 /usr.bin/tset
parent3d484d1c7a9822202f9f9ce61ea36e1b95114bdf (diff)
downloadFreeBSD-src-45f96a1a02b6242bd9432315ff8fabcc24071748.zip
FreeBSD-src-45f96a1a02b6242bd9432315ff8fabcc24071748.tar.gz
Reduce compiler warning: variable might be used uninitialized, by giving
an initial value.
Diffstat (limited to 'usr.bin/tset')
-rw-r--r--usr.bin/tset/map.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/tset/map.c b/usr.bin/tset/map.c
index a86d7c4..d3db6b6 100644
--- a/usr.bin/tset/map.c
+++ b/usr.bin/tset/map.c
@@ -196,6 +196,7 @@ mapped(type)
MAP *mapp;
int match;
+ match = 0;
for (mapp = maplist; mapp; mapp = mapp->next)
if (mapp->porttype == NULL || !strcmp(mapp->porttype, type)) {
switch (mapp->conditional) {
OpenPOWER on IntegriCloud