Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Aug 2011 15:39:00 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        Andrew Thompson <andy@fud.org.nz>
Cc:        current@FreeBSD.org
Subject:   Re: variable init
Message-ID:  <4E369E64.2070800@FreeBSD.org>
In-Reply-To: <CAFAOGNRN3e_9SyHU5yfRf-EhEWbWhpepCVQT-=n4LL-V44J1EQ@mail.gmail.com>
References:  <CAFAOGNRN3e_9SyHU5yfRf-EhEWbWhpepCVQT-=n4LL-V44J1EQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
on 01/08/2011 10:09 Andrew Thompson said the following:
> Hi,
> 
> Looking at,
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=159345
> 
> The lock is a global variable, declared as
> 
> static struct mtx       lagg_list_mtx;
> 
> I would expect this to be zeroed memory, is this guaranteed?

Variables with static storage should be initialized with all zeros.


-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E369E64.2070800>