diff --git a/streecmp.c b/streecmp.c index e7e16b9..3f0643f 100644 --- a/streecmp.c +++ b/streecmp.c @@ -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;