From: Ian Jackson Subject: Re: [PATCH] tools/xenconsoled: Initialise static data before use Date: Thu, 7 Mar 2013 18:59:37 +0000 Message-ID: <20792.58265.365439.671985@mariner.uk.xensource.com> References: <803a5869bfb532aff605.1362681902@andrewcoop.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <803a5869bfb532aff605.1362681902@andrewcoop.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Marcus Granado , Wei Liu , Ian Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Andrew Cooper writes ("[PATCH] tools/xenconsoled: Initialise static data before use"): > 'fds' and 'current_array_size' are used in a memset() in reset_fds(), and for > the first call to set_fds() before being initialised. > > Also initialise nr_fds for sanity sake. These variables have static storage duration and are therefore initialised to 0. Ian.