* let mu_str_subject_normalize work with static strings as well

This commit is contained in:
Dirk-Jan C. Binnema
2011-07-02 12:48:46 +03:00
parent a2bc4540e0
commit 58fdfa9bc1
3 changed files with 38 additions and 8 deletions

View File

@ -439,8 +439,13 @@ mu_str_subject_normalize (const gchar* str)
last_colon = g_strrstr (str, ":");
if (!last_colon)
return str;
else
return g_strchug (last_colon + 1);
else {
gchar *str;
str = last_colon + 1;
while (*str == ' ')
++str;
return str;
}
}