[gthumb] do not print a warning when the secret has a wrong format
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] do not print a warning when the secret has a wrong format
- Date: Sat, 22 Dec 2012 16:09:55 +0000 (UTC)
commit 1c2e118e41ec827e4aa3b4db2d6cad279adaf49e
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Dec 20 16:50:47 2012 +0100
do not print a warning when the secret has a wrong format
extensions/oauth/web-service.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/extensions/oauth/web-service.c b/extensions/oauth/web-service.c
index 4d341c2..adb0722 100644
--- a/extensions/oauth/web-service.c
+++ b/extensions/oauth/web-service.c
@@ -454,15 +454,11 @@ deserialize_secret (const char *secret,
char **token,
char **token_secret)
{
- GError *error = NULL;
GVariant *variant;
- variant = g_variant_parse (NULL, secret, NULL, NULL, &error);
- if (variant == NULL) {
- g_warning ("%s", error->message);
- g_clear_error (&error);
+ variant = g_variant_parse (NULL, secret, NULL, NULL, NULL);
+ if (variant == NULL)
return FALSE;
- }
if (token != NULL)
g_variant_get_child (variant, 0, "ms", token, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]