[libcloudproviders/fix-get-status] cloudprovideraccount: Fix crash when fetching the status code
- From: Gitlab System User <gitlab src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libcloudproviders/fix-get-status] cloudprovideraccount: Fix crash when fetching the status code
- Date: Fri, 1 Sep 2017 17:14:31 +0000 (UTC)
commit 245c8b22e465f2a6e21837fcd2b9d98e3cee8cb6
Author: Julius Härtl <jus bitgrid net>
Date: Fri Sep 1 19:14:16 2017 +0200
cloudprovideraccount: Fix crash when fetching the status code
src/cloudprovideraccount.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/cloudprovideraccount.c b/src/cloudprovideraccount.c
index 9e0e4de..9c950e0 100644
--- a/src/cloudprovideraccount.c
+++ b/src/cloudprovideraccount.c
@@ -81,9 +81,10 @@ on_get_status (CloudProviderAccount *self,
gpointer user_data)
{
CloudProviderAccountPrivate *priv = cloud_provider_account_get_instance_private (self);
- gint status = 0;
- g_signal_emit_by_name (CLOUD_PROVIDER_ACCOUNT(self), "handle_get_status", &status);
- cloud_provider_account1_complete_get_status (priv->skeleton, invocation, status);
+ gint *status = g_new0(gint, 1);
+ g_signal_emit_by_name (CLOUD_PROVIDER_ACCOUNT(self), "handle_get_status", status);
+ cloud_provider_account1_complete_get_status (priv->skeleton, invocation, *status);
+ g_free(status);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]