From: Keir Fraser Subject: Re: [PATCH] ioemu: unmap INTx interrupt on hot-remove Date: Fri, 27 Mar 2009 08:54:33 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Cui, Dexuan" , Simon Horman , Yuji Shimada Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 27/03/2009 07:29, "Cui, Dexuan" wrote: >> +char mapped_machine_irq[PT_NR_IRQS] = {0}; > My understanding is: > This does ensure all the elements of the array are 0, no matter the array is > global or local. Because in C99's 6.7.8 Initialization, we can find Dexuan is correct. If you specify an incomplete initializer, the unspecified data values default to zero. -- Keir