changeset 27327:a051f77d86a8

Remove just a tad bit of indirection
author Mark Doliner <mark@kingant.net>
date Thu, 02 Jul 2009 07:09:24 +0000
parents 7a4f56967512
children e28b627be482
files libpurple/util.c
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/util.c	Thu Jul 02 06:08:36 2009 +0000
+++ b/libpurple/util.c	Thu Jul 02 07:09:24 2009 +0000
@@ -3776,12 +3776,11 @@
 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 chunked;
+		return TRUE;
+
+	return FALSE;
 }
 
 /* Process in-place */