Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2012 08:29:00 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r234641 - projects/pf/head/sys/contrib/pf/net
Message-ID:  <201204240829.q3O8T0V6037883@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Tue Apr 24 08:29:00 2012
New Revision: 234641
URL: http://svn.freebsd.org/changeset/base/234641

Log:
  Fix compiler warning in pf_send_tcp().

Modified:
  projects/pf/head/sys/contrib/pf/net/pf.c

Modified: projects/pf/head/sys/contrib/pf/net/pf.c
==============================================================================
--- projects/pf/head/sys/contrib/pf/net/pf.c	Tue Apr 24 08:27:58 2012	(r234640)
+++ projects/pf/head/sys/contrib/pf/net/pf.c	Tue Apr 24 08:29:00 2012	(r234641)
@@ -2047,10 +2047,10 @@ pf_send_tcp(struct mbuf *replyto, const 
 	struct mbuf	*m;
 	int		 len, tlen;
 #ifdef INET
-	struct ip	*h;
+	struct ip	*h = NULL;
 #endif /* INET */
 #ifdef INET6
-	struct ip6_hdr	*h6;
+	struct ip6_hdr	*h6 = NULL;
 #endif /* INET6 */
 	struct tcphdr	*th;
 	char		*opt;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204240829.q3O8T0V6037883>