From 5643877d5cfcb4f85ff4a02aa1b3aab4434aeef4 Mon Sep 17 00:00:00 2001 From: 0xdeadbeer Date: Wed, 28 Aug 2024 21:41:28 +0200 Subject: [PATCH] fix: traverse tree in streencmp --- streecmp.c | 2 ++ 1 file changed, 2 insertions(+) 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;