diff options
author | 2010-08-12 00:26:55 +0000 | |
---|---|---|
committer | 2010-08-12 00:26:55 +0000 | |
commit | 57e97c0405f605a23a0c919718c53923a3ff3c5c (patch) | |
tree | f946d78705a9fbb8e816a842d771df662f7f5feb /sys | |
parent | we are at -current again (diff) | |
download | wireguard-openbsd-57e97c0405f605a23a0c919718c53923a3ff3c5c.tar.xz wireguard-openbsd-57e97c0405f605a23a0c919718c53923a3ff3c5c.zip |
Initialize xs to NULL in gdt_intr() since it now might be used before
otherwise assigned.
ok krw@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/gdt_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/gdt_common.c b/sys/dev/ic/gdt_common.c index e725786d5c8..12b8895e7e5 100644 --- a/sys/dev/ic/gdt_common.c +++ b/sys/dev/ic/gdt_common.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gdt_common.c,v 1.52 2010/08/11 02:18:25 krw Exp $ */ +/* $OpenBSD: gdt_common.c,v 1.53 2010/08/12 00:26:55 matthew Exp $ */ /* * Copyright (c) 1999, 2000, 2003 Niklas Hallqvist. All rights reserved. @@ -1086,7 +1086,7 @@ gdt_intr(void *arg) struct gdt_intr_ctx ctx; int chain = 1; int sync_val = 0; - struct scsi_xfer *xs; + struct scsi_xfer *xs = NULL; int prev_cmd; struct gdt_ccb *ccb; |