]> git.droids-corp.org - protos/libecoli.git/blobdiff - src/ecoli_node_sh_lex.c
api documentation for ec_parse
[protos/libecoli.git] / src / ecoli_node_sh_lex.c
index 7dd0358af93753c8a818d6e54b3c7c85db09997a..3f5abbc1e5e79d7c574724b5956e1b1495387b84 100644 (file)
@@ -242,7 +242,7 @@ ec_node_sh_lex_parse(const struct ec_node *node,
                ret = 1;
        } else if (ret != EC_PARSE_NOMATCH) {
                child_parse = ec_pnode_get_last_child(pstate);
                ret = 1;
        } else if (ret != EC_PARSE_NOMATCH) {
                child_parse = ec_pnode_get_last_child(pstate);
-               ec_pnode_unlink_child(pstate, child_parse);
+               ec_pnode_unlink_child(child_parse);
                ec_pnode_free(child_parse);
                ret = EC_PARSE_NOMATCH;
        }
                ec_pnode_free(child_parse);
                ret = EC_PARSE_NOMATCH;
        }