svn commit: r234641 - projects/pf/head/sys/contrib/pf/net

Gleb Smirnoff glebius at FreeBSD.org
Tue Apr 24 08:29:01 UTC 2012


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;


More information about the svn-src-projects mailing list