From 5e796543274754017bd4142a9b506f3b24d8d852 Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Sat, 8 Mar 2008 11:16:31 +0000 Subject: [PATCH] Shut up gcc warning (if ifac is not NULL, ifa must be initialized in this case) Noticed-by: swildner@ --- sys/net/sppp/if_spppsubr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/sppp/if_spppsubr.c b/sys/net/sppp/if_spppsubr.c index d86d8cfd8..e7ddf74d3 100644 --- a/sys/net/sppp/if_spppsubr.c +++ b/sys/net/sppp/if_spppsubr.c @@ -18,7 +18,7 @@ * From: Version 2.4, Thu Apr 30 17:17:21 MSD 1997 * * $FreeBSD: src/sys/net/if_spppsubr.c,v 1.59.2.13 2002/07/03 15:44:41 joerg Exp $ - * $DragonFly: src/sys/net/sppp/if_spppsubr.c,v 1.30 2008/03/07 11:34:20 sephe Exp $ + * $DragonFly: src/sys/net/sppp/if_spppsubr.c,v 1.31 2008/03/08 11:16:31 sephe Exp $ */ #include @@ -4905,7 +4905,7 @@ sppp_set_ip_addr(struct sppp *sp, u_long src) { STDDCL; struct ifaddr_container *ifac; - struct ifaddr *ifa; + struct ifaddr *ifa = NULL; struct sockaddr_in *si; struct in_ifaddr *ia; -- 2.11.4.GIT