[gnome-online-accounts] kerberos: Zero initialize operation structure
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] kerberos: Zero initialize operation structure
- Date: Tue, 4 Nov 2014 13:03:35 +0000 (UTC)
commit 5f4783c65032b6df4726cd89d2a57ff981440dbf
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]