提交 dfc4b8a7 编写于 作者: R Richard W.M. Jones

C99 initializer on __lastErr

        * src/virterror.c: Use C99 initializers to make initialization
          of __lastErr clearer (Guido Günther).
上级 c2b690f1
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
......
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册