/* Duplicate a GList where the GList::data is a CRString.  */
GList* cr_utils_dup_glist_of_cr_string(GList *a_list_of_strings)
/* Duplicate a GList where the GList::data is a CRString.  */
GList* cr_utils_dup_glist_of_cr_string(GList *a_list_of_strings)
{
        GList *cur = NULL, *result = NULL;
        g_return_val_if_fail (a_list_of_strings, NULL);
        for (cur = a_list_of_strings; cur; cur = cur->next) {
                CRString *str = NULL;
                str = cr_string_dup ((CRString *) cur->data) ;
                if (str)
                        result = g_list_append (result, str);
        }
        return result;
}