diff options
author | 2009-06-11 15:48:10 +0000 | |
---|---|---|
committer | 2009-06-11 15:48:10 +0000 | |
commit | 2a11a592ae8934999c7ef8fcfe9804bb1473de0c (patch) | |
tree | 370c518729e23b034c258362bed5d55915701972 | |
parent | The MAC multicast filter is set in mec_iff() hence there is need to do this (diff) | |
download | wireguard-openbsd-2a11a592ae8934999c7ef8fcfe9804bb1473de0c.tar.xz wireguard-openbsd-2a11a592ae8934999c7ef8fcfe9804bb1473de0c.zip |
fix potential use of uninitialized value.
found by LLVM/Clang Static Analyzer.
ok marco@
-rw-r--r-- | sys/dev/ic/ami.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c index f223ded6145..27e12799c2c 100644 --- a/sys/dev/ic/ami.c +++ b/sys/dev/ic/ami.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ami.c,v 1.194 2009/06/11 07:47:41 chl Exp $ */ +/* $OpenBSD: ami.c,v 1.195 2009/06/11 15:48:10 chl Exp $ */ /* * Copyright (c) 2001 Michael Shalayeff @@ -2510,7 +2510,7 @@ int ami_create_sensors(struct ami_softc *sc) { struct device *dev; - struct scsibus_softc *ssc; + struct scsibus_softc *ssc = NULL; int i; TAILQ_FOREACH(dev, &alldevs, dv_list) { |