[frogr] Added missing null-check checking the Soup response
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Added missing null-check checking the Soup response
- Date: Mon, 21 May 2012 23:17:54 +0000 (UTC)
commit d9b87697c6acdf22131abe42a87ecb78978b7ddb
Author: Mario Sanchez Prada <msanchez igalia com>
Date: Tue May 22 01:17:48 2012 +0200
Added missing null-check checking the Soup response
src/flicksoup/fsp-session.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/flicksoup/fsp-session.c b/src/flicksoup/fsp-session.c
index f98e69c..6f4a5b9 100644
--- a/src/flicksoup/fsp-session.c
+++ b/src/flicksoup/fsp-session.c
@@ -982,7 +982,7 @@ _check_errors_on_soup_response (SoupMessage *msg,
/* First check it's not an OAuth problem */
response_str = g_strndup (msg->response_body->data, msg->response_body->length);
- if (g_str_has_prefix (response_str, "oauth_problem="))
+ if (response_str && g_str_has_prefix (response_str, "oauth_problem="))
{
if (!g_strcmp0 (&response_str[14], "token_rejected"))
err = g_error_new (FSP_ERROR, FSP_ERROR_OAUTH_NOT_AUTHORIZED_YET,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]