C99 initializer on __lastErr

* src/virterror.c: Use C99 initializers to make initialization
          of __lastErr clearer (Guido Günther).
This commit is contained in:
Richard W.M. Jones 2008-04-02 16:22:34 +00:00
parent c2b690f1bd
commit dfc4b8a7d0
2 changed files with 9 additions and 1 deletions

View File

@ -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

View 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 */