diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2009-06-11 15:48:11 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2009-06-11 15:48:11 +0000 |
commit | 457f5e8e47f081920a33a8e85fcc785b707f708c (patch) | |
tree | 9cadb5cdc805148a1b529623df80671b4a5b9008 /sys/dev/ic/ami.c | |
parent | ca132352bd92d350079755884ee1d28856b2798a (diff) |
fix potential use of uninitialized value.
found by LLVM/Clang Static Analyzer.
ok marco@
Diffstat (limited to 'sys/dev/ic/ami.c')
-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) { |