From ad7193f7f5eaf1164ecf6cbab1989f75d9f35fb9 Mon Sep 17 00:00:00 2001 From: jgeboski Date: Sat, 9 Jan 2016 12:24:24 -0500 Subject: facebook-api: fixed incorrect handling of unknown XMA types This fixes an improper GError propagation, which not is only incorrect, but also has no effect. This ends up leading to the unsupported XMA message being ignored without any notice to the user. --- facebook/facebook-api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'facebook/facebook-api.c') diff --git a/facebook/facebook-api.c b/facebook/facebook-api.c index 4344cf8..e7a8409 100644 --- a/facebook/facebook-api.c +++ b/facebook/facebook-api.c @@ -1297,9 +1297,9 @@ fb_api_xma_parse(FbApi *api, const gchar *body, JsonNode *root, GError **error) url = fb_json_values_next_str(values, NULL); if ((str == NULL) || (url == NULL)) { - g_propagate_error(error, err); + text = g_strdup(""); g_object_unref(values); - return NULL; + return text; } if (g_strcmp0(str, "ExternalUrl") == 0) { -- cgit v1.2.3