Re: [Spice-devel] [PATCH spice] Add missing struct field initializers

2012-04-25 Thread Hans de Goede
Hi, On 04/25/2012 02:31 PM, Daniel P. Berrange wrote: On Wed, Apr 25, 2012 at 01:46:20PM +0200, Hans de Goede wrote: Hi, $subject: Why? The C standard guarantees that if any member of a struct (or array) gets initialized all non specifically initialized members will get initalized to a value o

Re: [Spice-devel] [PATCH spice] Add missing struct field initializers

2012-04-25 Thread Daniel P. Berrange
On Wed, Apr 25, 2012 at 01:46:20PM +0200, Hans de Goede wrote: > Hi, > > $subject: Why? The C standard guarantees that if any > member of a struct (or array) gets initialized all non > specifically initialized members will get initalized > to a value of 0. While you are correct that they get init

Re: [Spice-devel] [PATCH spice] Add missing struct field initializers

2012-04-25 Thread Hans de Goede
Hi, $subject: Why? The C standard guarantees that if any member of a struct (or array) gets initialized all non specifically initialized members will get initalized to a value of 0. Regards, Hans On 04/25/2012 12:00 PM, Daniel P. Berrange wrote: From: "Daniel P. Berrange" Signed-off-by: Dan

[Spice-devel] [PATCH spice] Add missing struct field initializers

2012-04-25 Thread Daniel P. Berrange
From: "Daniel P. Berrange" Signed-off-by: Daniel P. Berrange --- client/x11/platform.cpp | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/x11/platform.cpp b/client/x11/platform.cpp index f35d537..0669b69 100644 --- a/client/x11/platform.cpp +++ b/client/x