[librest/wip/baedert/gtask: 19/25] OAuthProxy: g_free is NULL-safe
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librest/wip/baedert/gtask: 19/25] OAuthProxy: g_free is NULL-safe
- Date: Sun, 8 May 2016 19:11:00 +0000 (UTC)
commit b2b14ce84e1cfd205c788475f7fcd8d17a228d25
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 a81f5a6..b4a8700 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]