git.droids-corp.org
/
protos
/
libecoli.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
del -> unlink + const macro
[protos/libecoli.git]
/
lib
/
ecoli_node_sh_lex.c
diff --git
a/lib/ecoli_node_sh_lex.c
b/lib/ecoli_node_sh_lex.c
index
1ad151f
..
d5c86eb
100644
(file)
--- a/
lib/ecoli_node_sh_lex.c
+++ b/
lib/ecoli_node_sh_lex.c
@@
-245,7
+245,7
@@
ec_node_sh_lex_parse(const struct ec_node *gen_node,
ret = 1;
} else if (ret != EC_PARSED_NOMATCH) {
child_parsed = ec_parsed_get_last_child(state);
ret = 1;
} else if (ret != EC_PARSED_NOMATCH) {
child_parsed = ec_parsed_get_last_child(state);
- ec_parsed_
del
_child(state, child_parsed);
+ ec_parsed_
unlink
_child(state, child_parsed);
ec_parsed_free(child_parsed);
ret = EC_PARSED_NOMATCH;
}
ec_parsed_free(child_parsed);
ret = EC_PARSED_NOMATCH;
}
@@
-272,7
+272,7
@@
ec_node_sh_lex_complete(const struct ec_node *gen_node,
struct ec_completed_item *item = NULL;
char *new_str = NULL;
const char *str;
struct ec_completed_item *item = NULL;
char *new_str = NULL;
const char *str;
- char missing_quote;
+ char missing_quote
= '\0'
;
int ret;
if (ec_strvec_len(strvec) != 1)
int ret;
if (ec_strvec_len(strvec) != 1)