diff options
author | Timm Bäder <mail@baedert.org> | 2016-04-23 16:21:23 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2016-04-23 16:21:23 +0200 |
commit | b2b14ce84e1cfd205c788475f7fcd8d17a228d25 (patch) | |
tree | 6b6786aa5f2702e381fc4c4dc1321b99af604b62 | |
parent | 9f47fc0772b607b784ed668105792250eb50af59 (diff) | |
download | librest-b2b14ce84e1cfd205c788475f7fcd8d17a228d25.tar.gz |
OAuthProxy: g_free is NULL-safe
-rw-r--r-- | 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); } |