Merge pull request #24 from joonicks/joonix-dev

removed temp debugs
This commit is contained in:
joonicks 2018-03-26 01:03:54 +02:00 committed by GitHub
commit bb8893c188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 19 deletions

View File

@ -196,16 +196,11 @@ void purge_strplist(Strp *sp)
{
Strp *nxt;
debug("do...\n");
while(sp)
{
debug("nxt =...\n");
nxt = sp->next;
debug("free...\n");
Free((char**)&sp);
debug("sp = nx\n");
sp = nxt;
debug("while..\n");
}
}

View File

@ -46,23 +46,19 @@ void urlcapture(const char *rest)
send_spy(SPYSTR_URL,"%s",url);
if ((n = urlhistmax))
{
debug("prepend\n");
prepend_strp(&urlhistory,url);
if ((n = urlhistmax) < 0)
return;
debug("for...\n");
for(sp=urlhistory;sp;sp=sp->next)
prepend_strp(&urlhistory,url);
for(sp=urlhistory;sp;sp=sp->next)
{
if (n <= 0)
{
if (n <= 0)
{
debug("purge...\n");
purge_strplist(sp->next);
debug("return\n");
return;
}
n--;
purge_strplist(sp->next);
return;
}
n--;
}
}