I need to parse a vcard and i'm using libebook/e-contact.h to do it. Now, my problem is to split the address field (or ADR in vcard).
I do it at this way:

GList* address_list;
char* street;

address_list = e_contact_get(contact, E_CONTACT_ADDRESS);
EContactAddress* addr = (EContactAddress*) address_list->data;
street = addr->street;

but it isn't work, it gives me a segmentation fault.

Can anyone help me.

best regards,