[gnome-online-accounts] kerberos: Style fixes
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] kerberos: Style fixes
- Date: Mon, 17 Jul 2017 15:34:08 +0000 (UTC)
commit 37b78cb73613009162e0f63f663b9e0961313ad3
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Jul 17 16:54:03 2017 +0200
kerberos: Style fixes
Don't use a separate line to initialize variables.
src/goabackend/goakerberosprovider.c | 18 +++++-------------
1 files changed, 5 insertions(+), 13 deletions(-)
---
diff --git a/src/goabackend/goakerberosprovider.c b/src/goabackend/goakerberosprovider.c
index 2d9db95..79f1910 100644
--- a/src/goabackend/goakerberosprovider.c
+++ b/src/goabackend/goakerberosprovider.c
@@ -286,9 +286,7 @@ get_ticket_sync (GoaKerberosProvider *self,
const char *password;
const char *preauth_source;
char *object_path = NULL;
- gboolean ret;
-
- ret = FALSE;
+ gboolean ret = FALSE;
account = goa_object_get_account (object);
identifier = goa_account_get_identity (account);
@@ -441,12 +439,9 @@ build_object (GoaProvider *provider,
GError **error)
{
GoaAccount *account;
- GoaTicketing *ticketing;
+ GoaTicketing *ticketing = NULL;
gboolean ticketing_enabled;
- gboolean ret;
-
- ticketing = NULL;
- ret = FALSE;
+ gboolean ret = FALSE;
if (!GOA_PROVIDER_CLASS (goa_kerberos_provider_parent_class)->build_object (provider,
object,
@@ -1131,18 +1126,15 @@ add_account (GoaProvider *provider,
SignInRequest request;
GVariantBuilder credentials;
GVariantBuilder details;
- GoaObject *object;
+ GoaObject *object = NULL;
GoaAccount *account;
char *realm;
const char *username;
const char *provider_type;
- gchar *principal;
+ gchar *principal = NULL;
gint response;
GVariant *options;
- object = NULL;
- principal = NULL;
-
memset (&request, 0, sizeof (SignInRequest));
request.cancellable = g_cancellable_new ();
request.loop = g_main_loop_new (NULL, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]