[libgovirt] Add missing initialization for GError
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgovirt] Add missing initialization for GError
- Date: Fri, 18 Apr 2014 14:42:27 +0000 (UTC)
commit 99417103230eec59db1273c50b6b356ece291e75
Author: Christophe Fergeau <cfergeau redhat com>
Date: Fri Apr 18 13:44:52 2014 +0200
Add missing initialization for GError
GError must be initialized to NULL before being valid.
govirt/ovirt-proxy.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/govirt/ovirt-proxy.c b/govirt/ovirt-proxy.c
index 677a006..08bec6f 100644
--- a/govirt/ovirt-proxy.c
+++ b/govirt/ovirt-proxy.c
@@ -264,7 +264,7 @@ void ovirt_rest_call_async(OvirtRestCall *call,
GDestroyNotify destroy_func)
{
OvirtProxy *proxy;
- GError *error;
+ GError *error = NULL;
OvirtProxyCallAsyncData *data;
g_return_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]