[gnome-online-accounts/gnome-3-10] kerberos: Zero initialize operation structure
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/gnome-3-10] kerberos: Zero initialize operation structure
- Date: Wed, 12 Nov 2014 14:33:30 +0000 (UTC)
commit aa4fb7861d4de548c7cb23e31e2e5571183e3afc
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 7e1a091..f65c1f7 100644
--- a/src/goaidentity/goakerberosidentitymanager.c
+++ b/src/goaidentity/goakerberosidentitymanager.c
@@ -129,7 +129,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]