svn commit: r245496 - projects/diffused_head/sbin/ipfw/diffuse_collector
Lawrence Stewart
lstewart at FreeBSD.org
Wed Jan 16 05:44:20 UTC 2013
Author: lstewart
Date: Wed Jan 16 05:44:20 2013
New Revision: 245496
URL: http://svnweb.freebsd.org/changeset/base/245496
Log:
Initialise the default class action using C99 designated initialiser syntax to
ensure the remainder of the struct is correctly zeroed.
Reported by: clang
Modified:
projects/diffused_head/sbin/ipfw/diffuse_collector/diffuse_collector.c
Modified: projects/diffused_head/sbin/ipfw/diffuse_collector/diffuse_collector.c
==============================================================================
--- projects/diffused_head/sbin/ipfw/diffuse_collector/diffuse_collector.c Wed Jan 16 05:32:49 2013 (r245495)
+++ projects/diffused_head/sbin/ipfw/diffuse_collector/diffuse_collector.c Wed Jan 16 05:44:20 2013 (r245496)
@@ -245,7 +245,7 @@ static RB_PROTOTYPE(class_action_head, c
static RB_GENERATE(class_action_head, class_action, node, class_action_compare);
static struct class_action_head class_actions;
-static struct class_action def_action = { "", 0, "count", "" };
+static struct class_action def_action = { .action = "count" };
struct pair {
char token[32];
More information about the svn-src-projects
mailing list