Date: Wed, 16 Jan 2013 05:44:20 +0000 (UTC) From: Lawrence Stewart <lstewart@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r245496 - projects/diffused_head/sbin/ipfw/diffuse_collector Message-ID: <201301160544.r0G5iKC4099203@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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];
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301160544.r0G5iKC4099203>