[WGID-159196] Fixed unreachable code 67/141767/1
authorSeonah Moon <seonah1.moon@samsung.com>
Tue, 1 Aug 2017 10:14:45 +0000 (19:14 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Tue, 1 Aug 2017 10:18:35 +0000 (19:18 +0900)
Change-Id: Ia0fc72988b177e75ab34d4afa3b796dc1717d5e9
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
libsoup/soup-message-io.c

index 2c42451..2587a7c 100644 (file)
@@ -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);