fix: traverse tree in streencmp

This commit is contained in:
0xdeadbeer 2024-08-28 21:41:28 +02:00
parent 7258ae9237
commit 5643877d5c

View File

@ -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;