Get rid of a stray semicolon, as it upsets Sun^WOracle Studio's C
compiler. Clean up escape_xml_chars() a bit, so that there's no extra unreached "return s;", and so that it's clearer that it runs until it hits a NUL. (XXX - are there GLib routines that will do this?) svn path=/trunk/; revision=53716
This commit is contained in:
parent
111ee4cc3a
commit
55544b5c39
|
@ -1321,7 +1321,7 @@ stat_node_array_sortcmp (gconstpointer a, gconstpointer b, gpointer user_data)
|
|||
/* user_data is *guint value to st_flags */
|
||||
return stats_tree_sort_compare (*(stat_node**)a,*(stat_node**)b,
|
||||
((sortinfo*)user_data)->sort_column,((sortinfo*)user_data)->sort_descending);
|
||||
};
|
||||
}
|
||||
|
||||
static gchar*
|
||||
clean_for_xml_tag (gchar *str)
|
||||
|
@ -1337,9 +1337,8 @@ static GString*
|
|||
escape_xml_chars (gchar *str)
|
||||
{
|
||||
GString *s= g_string_new("");
|
||||
while (1) {
|
||||
while (*str != '\0') {
|
||||
switch (*str) {
|
||||
case 0: return s;
|
||||
case '<': g_string_append(s,"<");
|
||||
break;
|
||||
case '>': g_string_append(s,">");
|
||||
|
|
Loading…
Reference in New Issue