]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
C99 initializer on __lastErr
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 2 Apr 2008 16:22:34 +0000 (16:22 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 2 Apr 2008 16:22:34 +0000 (16:22 +0000)
        * src/virterror.c: Use C99 initializers to make initialization
          of __lastErr clearer (Guido Günther).

ChangeLog
src/virterror.c

index 848bdaef020f5c6827609f94c7c4cacb8cfcf9ac..b85cc3fa9436745b97b0ece8f1b33cd3cb56752f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Apr  2 17:19:00 BST 2008 Richard W.M. Jones <rjones@redhat.com>
+
+       C99 initializer on __lastErr
+       * src/virterror.c: Use C99 initializers to make initialization
+         of __lastErr clearer (Guido Günther).
+
 Tue Apr  1 15:00:03 CEST 2008 Daniel Veillard <veillard@redhat.com>
 
        * src/lxc_conf.c: patch from Dave Leskovec fixing an freed memory
index 92ccf67d937bc10e84b71734f4eeb447515dc141..21109f2cb331b0b4b0459bfd6bf993361dabbafd 100644 (file)
@@ -19,7 +19,9 @@
 #include "internal.h"
 
 virError __lastErr =       /* the last error */
-{ 0, 0, NULL, VIR_ERR_NONE, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL };
+  { .code = 0, .domain = 0, .message = NULL, .level = VIR_ERR_NONE,
+    .conn = NULL, .dom = NULL, .str1 = NULL, .str2 = NULL, .str3 = NULL,
+    .int1 = 0, .int2 = 0, .net = NULL };
 static virErrorFunc virErrorHandler = NULL;     /* global error handler */
 static void *virUserData = NULL;        /* associated data */