From a7aefd33ade7331cfa88884275e07a74c1a9423f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Mon, 10 Jun 2024 02:22:13 +0500 Subject: [PATCH] A change --- src/process.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/process.c b/src/process.c index 7071998..16c62ae 100644 --- a/src/process.c +++ b/src/process.c @@ -51,13 +51,13 @@ bool process_find(tSyntaxElement* tree, tProcessingData** p_pdata) { if (se_istraversable(tree)) - if (tree->content.syntax->type == TOKEN && - tree->content.syntax->next != NULL && - tree->content.syntax->next->next != NULL) { + if (tree->content.syntax->type == TOKEN) { tSyntaxElement* token = tree->content.syntax; - if (strcmp(token->content.string,"def") == 0) { + if (strcmp(token->content.string,"def") == 0 && + token->next != NULL && + token->next->next != NULL) { char* replacethis = token->next->content.string;