diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2010-08-12 00:26:56 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2010-08-12 00:26:56 +0000 |
commit | 3dbd24ec174919c1882f89080e45778a13605c23 (patch) | |
tree | 85097f2992a6619ad30e2447ae358962475eda11 /sys | |
parent | 6752a7726eeeac00db55bb9d173c7a7401e7d807 (diff) |
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; |