[Xfce4-commits] <midori:master> NULL-check name in string_append_item
Christian Dywan
noreply at xfce.org
Tue Mar 5 19:00:01 CET 2013
Updating branch refs/heads/master
to 9e201e9e66804525e7d11b9f65e872cf466db5ba (commit)
from 12cc7d81707c663900d10a1591f5247ebc7e23fb (commit)
commit 9e201e9e66804525e7d11b9f65e872cf466db5ba
Author: Christian Dywan <christian at twotoasts.de>
Date: Tue Mar 5 18:57:44 2013 +0100
NULL-check name in string_append_item
midori/midori-array.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/midori/midori-array.c b/midori/midori-array.c
index 87e826c..06877e3 100644
--- a/midori/midori-array.c
+++ b/midori/midori-array.c
@@ -730,7 +730,7 @@ string_append_item (GString* string,
string_append_escaped (string, katze_item_get_uri (item));
g_string_append (string, "\">\n");
/* Strip LRE leading character */
- if (g_str_has_prefix (item->name, ""))
+ if (item->name != NULL && g_str_has_prefix (item->name, ""))
string_append_xml_element (string, "title",
g_utf8_next_char (strstr (item->name, "")));
else
More information about the Xfce4-commits
mailing list