mirror of
https://github.com/EnergyMech/energymech.git
synced 2025-12-29 16:14:43 +00:00
commit
bb8893c188
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
10
src/urlcap.c
10
src/urlcap.c
@ -46,24 +46,20 @@ void urlcapture(const char *rest)
|
||||
|
||||
send_spy(SPYSTR_URL,"%s",url);
|
||||
|
||||
if ((n = urlhistmax))
|
||||
{
|
||||
debug("prepend\n");
|
||||
if ((n = urlhistmax) < 0)
|
||||
return;
|
||||
|
||||
prepend_strp(&urlhistory,url);
|
||||
|
||||
debug("for...\n");
|
||||
for(sp=urlhistory;sp;sp=sp->next)
|
||||
{
|
||||
if (n <= 0)
|
||||
{
|
||||
debug("purge...\n");
|
||||
purge_strplist(sp->next);
|
||||
debug("return\n");
|
||||
return;
|
||||
}
|
||||
n--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user