summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchl <chl@openbsd.org>2009-02-09 19:14:31 +0000
committerchl <chl@openbsd.org>2009-02-09 19:14:31 +0000
commitf4429ae7c406610051a2d60f354e1321d8b6717f (patch)
tree9a95bb8bbd0b7c62107a3821fe048bd544c5fdca
parentSTANDARDS: these applications are no longer optional in posix (diff)
downloadwireguard-openbsd-f4429ae7c406610051a2d60f354e1321d8b6717f.tar.xz
wireguard-openbsd-f4429ae7c406610051a2d60f354e1321d8b6717f.zip
fix uninitialized argument.
Found by LLVM/Clang Static Analyzer. ok krw@ tedu@
-rw-r--r--sys/dev/pcmcia/if_xe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pcmcia/if_xe.c b/sys/dev/pcmcia/if_xe.c
index a8924ac8172..acba6c14876 100644
--- a/sys/dev/pcmcia/if_xe.c
+++ b/sys/dev/pcmcia/if_xe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_xe.c,v 1.36 2008/10/03 01:31:24 brad Exp $ */
+/* $OpenBSD: if_xe.c,v 1.37 2009/02/09 19:14:31 chl Exp $ */
/*
* Copyright (c) 1999 Niklas Hallqvist, Brandon Creighton, Job de Haas
@@ -222,7 +222,7 @@ xe_pcmcia_attach(parent, self, aux)
struct xe_softc *sc = &psc->sc_xe;
struct pcmcia_attach_args *pa = aux;
struct pcmcia_function *pf = pa->pf;
- struct pcmcia_config_entry *cfe;
+ struct pcmcia_config_entry *cfe = NULL;
struct ifnet *ifp;
u_int8_t myla[ETHER_ADDR_LEN], *enaddr = NULL;
int state = 0;