[gnome-online-accounts/gnome-3-12] kerberos: Zero initialize operation structure
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/gnome-3-12] kerberos: Zero initialize operation structure
- Date: Wed, 12 Nov 2014 14:32:48 +0000 (UTC)
commit 0cc365ede90f721c5115520d57ad4b90572897f3
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 b71dccb..8266001 100644
--- a/src/goaidentity/goakerberosidentitymanager.c
+++ b/src/goaidentity/goakerberosidentitymanager.c
@@ -126,7 +126,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]