fix: traverse tree in streencmp
This commit is contained in:
parent
7258ae9237
commit
5643877d5c
|
@ -126,6 +126,8 @@ int streencmp(struct nod *nod, char *str, int len) {
|
|||
if (target->val.cval == '\0') {
|
||||
return target->val.ival;
|
||||
}
|
||||
|
||||
nod = target;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user