Fix bogus uninitialized variable warning ifdef PPPOE_SERVER.
Noticed by Marcin Jessa on current-users.
This commit is contained in:
parent
323d4b7a78
commit
ebe6c135ee
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_pppoe.c,v 1.60 2005/05/29 21:22:53 christos Exp $ */
|
||||
/* $NetBSD: if_pppoe.c,v 1.61 2005/08/31 00:00:26 martin Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.60 2005/05/29 21:22:53 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.61 2005/08/31 00:00:26 martin Exp $");
|
||||
|
||||
#include "pppoe.h"
|
||||
#include "bpfilter.h"
|
||||
@ -1324,7 +1324,7 @@ pppoe_send_pads(struct pppoe_softc *sc)
|
||||
{
|
||||
struct mbuf *m0;
|
||||
u_int8_t *p;
|
||||
size_t len, l1;
|
||||
size_t len, l1 = 0; /* XXX: gcc */
|
||||
|
||||
if (sc->sc_state != PPPOE_STATE_PADO_SENT)
|
||||
return EIO;
|
||||
|
Loading…
Reference in New Issue
Block a user