summaryrefslogtreecommitdiff
path: root/amiga/stringview/urlhistory.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2013-10-12 13:11:13 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2013-10-12 13:11:13 +0100
commitade86e496ea4bc27b6edab125bad9f5dc4bb3852 (patch)
tree81aae5427d06ae06be2968df5d025780206bf682 /amiga/stringview/urlhistory.c
parent6ea52d0d9f423a13acc7c7fe015038a15a9636ff (diff)
downloadnetsurf-ade86e496ea4bc27b6edab125bad9f5dc4bb3852.tar.gz
netsurf-ade86e496ea4bc27b6edab125bad9f5dc4bb3852.tar.bz2
Replace AllocVec with AllocVecTags. Remove some instances of MEMF_CLEAR where it is not necessary.
Diffstat (limited to 'amiga/stringview/urlhistory.c')
-rw-r--r--amiga/stringview/urlhistory.c13
1 files changed, 10 insertions, 3 deletions
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));