aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2011-06-03 21:11:53 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2011-06-03 21:11:53 +0800
commit522d846720dce36821f9203b225613518744e4db (patch)
treedab811ee573880ab47f3f49ef6a4e040cfa42d03
parent89cd6749b82686ca78e8d44c5b3fb18fead02363 (diff)
downloadgsoc2013-epiphany-522d846720dce36821f9203b225613518744e4db.tar
gsoc2013-epiphany-522d846720dce36821f9203b225613518744e4db.tar.gz
gsoc2013-epiphany-522d846720dce36821f9203b225613518744e4db.tar.bz2
gsoc2013-epiphany-522d846720dce36821f9203b225613518744e4db.tar.lz
gsoc2013-epiphany-522d846720dce36821f9203b225613518744e4db.tar.xz
gsoc2013-epiphany-522d846720dce36821f9203b225613518744e4db.tar.zst
gsoc2013-epiphany-522d846720dce36821f9203b225613518744e4db.zip
Remove an unnecessary g_strv_length()
-rw-r--r--lib/ephy-request-about.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/ephy-request-about.c b/lib/ephy-request-about.c
index 167f2ec27..5cd55b9f1 100644
--- a/lib/ephy-request-about.c
+++ b/lib/ephy-request-about.c
@@ -95,15 +95,14 @@ ephy_request_about_send (SoupRequest *request,
mime_types = webkit_web_plugin_get_mimetypes (plugin);
for (m = mime_types; m; m = m->next) {
WebKitWebPluginMIMEType *mime_type = (WebKitWebPluginMIMEType*) m->data;
- guint extensions_len = g_strv_length (mime_type->extensions);
guint i;
g_string_append_printf (data_str, "<tr><td>%s</td><td>%s</td><td>",
mime_type->name, mime_type->description);
- for (i = 0; i < extensions_len; i++)
+ for (i = 0; mime_type->extensions[i] != NULL; i++)
g_string_append_printf (data_str, "%s%c", mime_type->extensions[i],
- i == (extensions_len - 1) ? ' ' : ',');
+ mime_type->extensions[i + 1] ? ',' : ' ');
g_string_append(data_str, "</td></tr>");
}