pluto: Properly initialize constants.
This commit is contained in:
+3
-1
@@ -966,7 +966,9 @@ malloc_md(void)
|
|||||||
* - .note = NOTHING_WRONG
|
* - .note = NOTHING_WRONG
|
||||||
* - .encrypted = FALSE
|
* - .encrypted = FALSE
|
||||||
*/
|
*/
|
||||||
static const struct msg_digest blank_md;
|
static const struct msg_digest blank_md = {
|
||||||
|
.next = NULL,
|
||||||
|
};
|
||||||
|
|
||||||
if (md == NULL)
|
if (md == NULL)
|
||||||
{
|
{
|
||||||
|
|||||||
+4
-1
@@ -166,7 +166,10 @@ static struct state **state_hash(const u_char *icookie, const u_char *rcookie,
|
|||||||
*/
|
*/
|
||||||
struct state *new_state(void)
|
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;
|
static so_serial_t next_so = SOS_FIRST;
|
||||||
struct state *st;
|
struct state *st;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user