Skip to content
Snippets Groups Projects
Commit e9d9d434 authored by deuce's avatar deuce
Browse files

Instead of breaking during killscript_handler(), ensure the entire list is

traversed.  The existance of the pnode variable implies this was the intent
parent 62a6eef2
No related branches found
No related tags found
No related merge requests found
......@@ -122,14 +122,14 @@ static void killscript_handler(JSContext *cx, JSScript *script, void *callerdata
if(dbg==NULL)
return;
for(node=listFirstNode(&scripts); node; node=listNextNode(node)) {
for(node=listFirstNode(&scripts); node; node==NULL?listFirstNode(&scripts):listNextNode(node)) {
cs=(struct cur_script *)node->data;
if(cs->script == script) {
pnode=listPrevNode(node);
free(cs->fname);
listRemoveNode(&scripts, node, TRUE);
break;
node = pnode;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment