summaryrefslogtreecommitdiffstats
path: root/sys/cam/scsi
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>1999-08-15 23:34:40 +0000
committermjacob <mjacob@FreeBSD.org>1999-08-15 23:34:40 +0000
commitba364da5431648f58dafdb04ce6b24fd1b3bd2ec (patch)
treecee5bf43ab63ac8df371c1a9f17712b1b645389d /sys/cam/scsi
parent8bafaafa9185cf290348cdde2a8b4a2e5c59722b (diff)
downloadFreeBSD-src-ba364da5431648f58dafdb04ce6b24fd1b3bd2ec.zip
FreeBSD-src-ba364da5431648f58dafdb04ce6b24fd1b3bd2ec.tar.gz
Move initialization of announce_buf up to make
sure it is initialized in all cases.
Diffstat (limited to 'sys/cam/scsi')
-rw-r--r--sys/cam/scsi/scsi_da.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c
index ca36b3c..b23a35d 100644
--- a/sys/cam/scsi/scsi_da.c
+++ b/sys/cam/scsi/scsi_da.c
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: scsi_da.c,v 1.31 1999/08/09 10:34:30 phk Exp $
+ * $Id: scsi_da.c,v 1.32 1999/08/14 11:40:31 phk Exp $
*/
#include "opt_hw_wdog.h"
@@ -1315,6 +1315,8 @@ dadone(struct cam_periph *periph, union ccb *done_ccb)
} else {
int error;
+ announce_buf[0] = '\0';
+
/*
* Retry any UNIT ATTENTION type errors. They
* are expected at boot.
@@ -1396,7 +1398,6 @@ dadone(struct cam_periph *periph, union ccb *done_ccb)
* Free up resources.
*/
cam_periph_invalidate(periph);
- announce_buf[0] = '\0';
}
}
}
OpenPOWER on IntegriCloud