pidgin: bbca51d4: Remove just a tad bit of indirection

markdoliner at pidgin.im markdoliner at pidgin.im
Thu Jul 2 03:10:36 EDT 2009


-----------------------------------------------------------------
Revision: bbca51d4ecb2cb1f3eb8ebf0de5f8c8ad6d0893e
Ancestor: 33fc08cc4dcaca950a8c6025d010881434fe8fb6
Author: markdoliner at pidgin.im
Date: 2009-07-02T07:09:24
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/bbca51d4ecb2cb1f3eb8ebf0de5f8c8ad6d0893e

Modified files:
        libpurple/util.c

ChangeLog: 

Remove just a tad bit of indirection

-------------- next part --------------
============================================================
--- libpurple/util.c	9a99dde784d616109ee8c3156036822961cffea2
+++ libpurple/util.c	1a552bb60cb8f950190972e5245f16443fce7cc8
@@ -3776,12 +3776,11 @@ content_is_chunked(const char *data, siz
 static gboolean
 content_is_chunked(const char *data, size_t data_len)
 {
-	gboolean chunked = FALSE;
 	const char *p = find_header_content(data, data_len, "\nTransfer-Encoding: ", sizeof("\nTransfer-Encoding: ") - 1);
 	if (p && g_strncasecmp(p, "chunked", 7) == 0)
-		chunked = TRUE;
+		return TRUE;
 
-	return chunked;
+	return FALSE;
 }
 
 /* Process in-place */


More information about the Commits mailing list