[librest/wip/teuf/gtask: 21/37] OAuthProxy: g_free is NULL-safe
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librest/wip/teuf/gtask: 21/37] OAuthProxy: g_free is NULL-safe
- Date: Thu, 16 Jun 2016 16:43:53 +0000 (UTC)
commit 307e35b2f76e69c5d077e1531dc8f294cff54a6b
Author: Timm Bäder <mail baedert org>
Date: Sat Apr 23 16:21:23 2016 +0200
OAuthProxy: g_free is NULL-safe
rest/oauth-proxy.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/rest/oauth-proxy.c b/rest/oauth-proxy.c
index 8c069b2..5801cd6 100644
--- a/rest/oauth-proxy.c
+++ b/rest/oauth-proxy.c
@@ -550,9 +550,7 @@ oauth_proxy_set_token (OAuthProxy *proxy, const char *token)
g_return_if_fail (OAUTH_IS_PROXY (proxy));
priv = PROXY_GET_PRIVATE (proxy);
- if (priv->token)
- g_free (priv->token);
-
+ g_free (priv->token);
priv->token = g_strdup (token);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]