[gnome-online-accounts/gnome-3-14] kerberos: Zero initialize operation structure
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/gnome-3-14] kerberos: Zero initialize operation structure
- Date: Mon, 10 Nov 2014 20:39:56 +0000 (UTC)
commit c2a458c06b2b5907331bd8ef32fde9c2e564f67d
Author: Ray Strode <rstrode redhat com>
Date: Wed Oct 22 11:06:19 2014 -0400
kerberos: Zero initialize operation structure
We need zero initialize the structure so we don't end up
freeing unused members when cleaning up the operation.
https://bugzilla.gnome.org/show_bug.cgi?id=739593
src/goaidentity/goakerberosidentitymanager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/goaidentity/goakerberosidentitymanager.c b/src/goaidentity/goakerberosidentitymanager.c
index d7f7d7c..c9796ad 100644
--- a/src/goaidentity/goakerberosidentitymanager.c
+++ b/src/goaidentity/goakerberosidentitymanager.c
@@ -124,7 +124,7 @@ operation_new (GoaKerberosIdentityManager *self,
{
Operation *operation;
- operation = g_slice_new (Operation);
+ operation = g_slice_new0 (Operation);
operation->manager = self;
operation->type = type;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]