484 /* |
484 /* |
485 * The list secrets->location contains urls or repo names as |
485 * The list secrets->location contains urls or repo names as |
486 * location strings. We need a list, that contains only urls |
486 * location strings. We need a list, that contains only urls |
487 */ |
487 */ |
488 CxList *locations = cxLinkedListCreate(cxDefaultAllocator, (cx_compare_func)cmp_url_cred_entry, CX_STORE_POINTERS); |
488 CxList *locations = cxLinkedListCreate(cxDefaultAllocator, (cx_compare_func)cmp_url_cred_entry, CX_STORE_POINTERS); |
489 locations->simple_destructor = (cx_destructor_func)free_cred_location; |
489 cxDefineDestructor(locations, free_cred_location); |
490 CxIterator i = cxListIterator(secrets->locations); |
490 CxIterator i = cxListIterator(secrets->locations); |
491 cx_foreach(PwdIndexEntry*, e, i) { |
491 cx_foreach(PwdIndexEntry*, e, i) { |
492 CxIterator entry_iter = cxListIterator(e->locations); |
492 CxIterator entry_iter = cxListIterator(e->locations); |
493 cx_foreach(char *, loc, entry_iter) { |
493 cx_foreach(char *, loc, entry_iter) { |
494 cxmutstr rpath; |
494 cxmutstr rpath; |