pluto: Properly initialize constants.

This commit is contained in:
Tobias Brunner
2011-04-14 18:11:46 +02:00
parent 7223229924
commit 3bec23d88c
2 changed files with 7 additions and 2 deletions
+3 -1
View File
@@ -966,7 +966,9 @@ malloc_md(void)
* - .note = NOTHING_WRONG
* - .encrypted = FALSE
*/
static const struct msg_digest blank_md;
static const struct msg_digest blank_md = {
.next = NULL,
};
if (md == NULL)
{
+4 -1
View File
@@ -166,7 +166,10 @@ static struct state **state_hash(const u_char *icookie, const u_char *rcookie,
*/
struct state *new_state(void)
{
static const struct state blank_state; /* initialized all to zero & NULL */
/* initialized all to zero & NULL */
static const struct state blank_state = {
.st_serialno = 0,
};
static so_serial_t next_so = SOS_FIRST;
struct state *st;