Re: variable init

From: Andriy Gapon <avg_at_FreeBSD.org>
Date: Mon, 01 Aug 2011 15:39:00 +0300
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
Received on Mon Aug 01 2011 - 10:55:58 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:16 UTC