svn commit: r196896 - head/sys/netipsec
Pawel Jakub Dawidek
pjd at FreeBSD.org
Sun Sep 6 18:09:26 UTC 2009
Author: pjd
Date: Sun Sep 6 18:09:25 2009
New Revision: 196896
URL: http://svn.freebsd.org/changeset/base/196896
Log:
Initialize state_valid and arraysize variable so gcc won't complain.
Reported by: bz
Modified:
head/sys/netipsec/key.c
Modified: head/sys/netipsec/key.c
==============================================================================
--- head/sys/netipsec/key.c Sun Sep 6 17:24:15 2009 (r196895)
+++ head/sys/netipsec/key.c Sun Sep 6 18:09:25 2009 (r196896)
@@ -906,6 +906,9 @@ key_allocsa_policy(const struct secasind
u_int stateidx, arraysize;
const u_int *state_valid;
+ state_valid = NULL; /* silent gcc */
+ arraysize = 0; /* silent gcc */
+
SAHTREE_LOCK();
LIST_FOREACH(sah, &V_sahtree, chain) {
if (sah->state == SADB_SASTATE_DEAD)
@@ -922,7 +925,6 @@ key_allocsa_policy(const struct secasind
}
}
SAHTREE_UNLOCK();
-
if (sah == NULL)
return NULL;
More information about the svn-src-head
mailing list