summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2017-08-01 19:14:45 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2017-08-01 19:18:35 +0900
commit22fe147303dde1bfc3de7242bb70b35ffa8c800c (patch)
treed1a304fd23fe712dfe7108ca209875dccccbad6f
parentfbfe7f294b84c92890af8afe0e98d54b001033c3 (diff)
downloadlibsoup-22fe147303dde1bfc3de7242bb70b35ffa8c800c.tar.gz
libsoup-22fe147303dde1bfc3de7242bb70b35ffa8c800c.tar.bz2
libsoup-22fe147303dde1bfc3de7242bb70b35ffa8c800c.zip
[WGID-159196] Fixed unreachable code
Change-Id: Ia0fc72988b177e75ab34d4afa3b796dc1717d5e9 Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
-rw-r--r--libsoup/soup-message-io.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libsoup/soup-message-io.c b/libsoup/soup-message-io.c
index 2c42451f..2587a7cf 100644
--- a/libsoup/soup-message-io.c
+++ b/libsoup/soup-message-io.c
@@ -701,10 +701,8 @@ io_read (SoupMessage *msg, gboolean blocking,
gpointer key, value;
g_hash_table_iter_init (&iter, params);
- while (g_hash_table_iter_next (&iter, &key, &value)) {
+ if (g_hash_table_iter_next (&iter, &key, &value))
composite_type = TRUE;
- break;
- }
}
if (!composite_type)
soup_cache_entry_set_content_type (io->item->session, msg, content_type);