/soc/2013/ankitkv/gobjectification: 855b508c16ef: Merged soc.201...

Ankit Vani a at nevitus.org
Thu Nov 7 18:57:11 EST 2013


Changeset: 855b508c16ef8c1af3c020d8cddf0b36bc60971e
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-11-08 05:26 +0530
Branch:	 soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/855b508c16ef

Description:

Merged soc.2013.gobjectification branch

diffstat:

 libpurple/http.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (17 lines):

diff --git a/libpurple/http.c b/libpurple/http.c
--- a/libpurple/http.c
+++ b/libpurple/http.c
@@ -1117,9 +1117,10 @@ static gboolean _purple_http_recv_loopbo
 			purple_http_conn_retry(hc);
 			return FALSE;
 		} else {
-			if (g_ascii_strcasecmp(purple_http_headers_get(
-				hc->response->headers, "Server"),
-				"YHttpServer") == 0)
+			const gchar *server = purple_http_headers_get(
+				hc->response->headers, "Server");
+			if (server &&
+				g_ascii_strcasecmp(server, "YHttpServer") == 0)
 			{
 				purple_debug_warning("http", "No more data "
 					"while parsing headers (YHttpServer "



More information about the Commits mailing list