[gnome-online-accounts] foursquare: Style fixes
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] foursquare: Style fixes
- Date: Mon, 9 Jan 2017 14:00:35 +0000 (UTC)
commit d7a24d1bd5e4c1458c4ed0cea6d610ec5e0c35bc
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Jan 9 14:54:54 2017 +0100
foursquare: Style fixes
Don't use a separate line to initialize variables.
src/goabackend/goafoursquareprovider.c | 34 +++++++++----------------------
1 files changed, 10 insertions(+), 24 deletions(-)
---
diff --git a/src/goabackend/goafoursquareprovider.c b/src/goabackend/goafoursquareprovider.c
index 6e89c6a..3ff5b0e 100644
--- a/src/goabackend/goafoursquareprovider.c
+++ b/src/goabackend/goafoursquareprovider.c
@@ -153,23 +153,14 @@ get_identity_sync (GoaOAuth2Provider *oauth2_provider,
GCancellable *cancellable,
GError **error)
{
- GError *identity_error;
- RestProxy *proxy;
- RestProxyCall *call;
- JsonParser *parser;
+ GError *identity_error = NULL;
+ RestProxy *proxy = NULL;
+ RestProxyCall *call = NULL;
+ JsonParser *parser = NULL;
JsonObject *json_object;
- gchar *ret;
- gchar *id;
- gchar *presentation_identity;
-
- ret = NULL;
-
- identity_error = NULL;
- proxy = NULL;
- call = NULL;
- parser = NULL;
- id = NULL;
- presentation_identity = NULL;
+ gchar *ret = NULL;
+ gchar *id = NULL;
+ gchar *presentation_identity = NULL;
/* TODO: cancellable */
@@ -290,14 +281,9 @@ get_identity_sync (GoaOAuth2Provider *oauth2_provider,
static gboolean
is_identity_node (GoaOAuth2Provider *oauth2_provider, WebKitDOMHTMLInputElement *element)
{
- gboolean ret;
- gchar *element_type;
- gchar *name;
-
- element_type = NULL;
- name = NULL;
-
- ret = FALSE;
+ gboolean ret = FALSE;
+ gchar *element_type = NULL;
+ gchar *name = NULL;
g_object_get (element, "type", &element_type, NULL);
if (g_strcmp0 (element_type, "email") != 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]