From ade86e496ea4bc27b6edab125bad9f5dc4bb3852 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 12 Oct 2013 13:11:13 +0100 Subject: Replace AllocVec with AllocVecTags. Remove some instances of MEMF_CLEAR where it is not necessary. --- amiga/stringview/urlhistory.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'amiga/stringview') diff --git a/amiga/stringview/urlhistory.c b/amiga/stringview/urlhistory.c index fa5aec448..6d134a4a5 100644 --- a/amiga/stringview/urlhistory.c +++ b/amiga/stringview/urlhistory.c @@ -73,17 +73,24 @@ static bool URLHistoryFound(nsurl *url, const struct url_data *data) { struct Node *node; - /* skip non-visted pages */ + /* skip non-visited pages */ if(data->visits <= 0) return true; /* skip this URL if it is already in the list */ if(URLHistory_FindPage(nsurl_access(url))) return true; - node = AllocVec( sizeof( struct Node ), MEMF_SHARED|MEMF_CLEAR ); + node = AllocVecTags(sizeof(struct Node), + AVT_Type, MEMF_SHARED, + //AVT_ClearWithValue, 0, + TAG_DONE); if ( node ) { - STRPTR urladd = (STRPTR) AllocVec( strlen ( nsurl_access(url) ) + 1, MEMF_SHARED|MEMF_CLEAR ); + STRPTR urladd = (STRPTR) AllocVecTags( strlen ( nsurl_access(url) ) + 1, + AVT_Type, MEMF_SHARED, + //AVT_ClearWithValue, 0, + TAG_DONE); + if ( urladd ) { strcpy(urladd, nsurl_access(url)); -- cgit v1.2.3