summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhosokawa <hosokawa@FreeBSD.org>1998-03-19 16:19:16 +0000
committerhosokawa <hosokawa@FreeBSD.org>1998-03-19 16:19:16 +0000
commit309af0bbe22b12b32f3d3cedf86ff947ac8ddfbb (patch)
tree2c86643ecb82db720bcab02c41b6a31df4510b07
parentd6e453e36fb6c030d539f25e683b8a36d830b4e0 (diff)
downloadFreeBSD-src-309af0bbe22b12b32f3d3cedf86ff947ac8ddfbb.zip
FreeBSD-src-309af0bbe22b12b32f3d3cedf86ff947ac8ddfbb.tar.gz
Uninitialized pointer reference may happen on particular environment.
(for example, it kills my new laptop, Toshiba Libretto 100....)
-rw-r--r--sys/pccard/pcic.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/pccard/pcic.c b/sys/pccard/pcic.c
index 96d6c57..03deeb9 100644
--- a/sys/pccard/pcic.c
+++ b/sys/pccard/pcic.c
@@ -283,10 +283,15 @@ pcic_dump_attributes(unsigned char *scratch, int maxlen)
}
#endif
+static void
+nullfunc(int unit)
+{
+ /* empty */
+}
+
static u_int
build_freelist(u_int pcic_mask)
{
- inthand2_t *nullfunc;
int irq;
u_int mask, freemask;
OpenPOWER on IntegriCloud