mirror of https://github.com/djcb/mu.git
* cosmetic
This commit is contained in:
parent
7b13676f3c
commit
70856427cf
|
@ -354,8 +354,10 @@ add_terms_values_string_list (Xapian::Document& doc, MuMsg *msg,
|
||||||
const GSList *lst;
|
const GSList *lst;
|
||||||
|
|
||||||
lst = mu_msg_get_field_string_list (msg, mfid);
|
lst = mu_msg_get_field_string_list (msg, mfid);
|
||||||
|
if (!lst)
|
||||||
|
return;
|
||||||
|
|
||||||
if (lst && mu_msg_field_xapian_value (mfid)) {
|
if (mu_msg_field_xapian_value (mfid)) {
|
||||||
gchar *str;
|
gchar *str;
|
||||||
str = mu_str_from_list (lst, ',');
|
str = mu_str_from_list (lst, ',');
|
||||||
if (str)
|
if (str)
|
||||||
|
@ -363,12 +365,12 @@ add_terms_values_string_list (Xapian::Document& doc, MuMsg *msg,
|
||||||
g_free (str);
|
g_free (str);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lst && mu_msg_field_xapian_term (mfid)) {
|
if (mu_msg_field_xapian_term (mfid)) {
|
||||||
while (lst) {
|
for (; lst; lst = g_slist_next ((GSList*)lst)) {
|
||||||
char *val;
|
char *val;
|
||||||
val = g_string_chunk_insert (strchunk, (const gchar*)lst->data);
|
val = g_string_chunk_insert
|
||||||
|
(strchunk, (const gchar*)lst->data);
|
||||||
add_terms_values_str (doc, val, mfid, strchunk);
|
add_terms_values_str (doc, val, mfid, strchunk);
|
||||||
lst = g_slist_next ((GSList*)lst);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue