summaryrefslogtreecommitdiff
path: root/amiga/stringview/urlhistory.c
diff options
context:
space:
mode:
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));