From 898fa9b195ab0b5b544fbe811061383565eb7141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Tue, 11 Jun 2024 16:29:40 +0500 Subject: [PATCH] How in the bloody hell it end up like that!? --- src/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/process.c b/src/process.c index 9e9bfd4..68ceb99 100644 --- a/src/process.c +++ b/src/process.c @@ -74,7 +74,7 @@ bool process_find(tSyntaxElement* tree, tProcessingData** p_pdata) { tSyntaxElement* replacewiththis = token->next->next; - tProcessingData* npd = malloc(sizeof(tSyntaxElement)); + tProcessingData* npd = malloc(sizeof(tProcessingData)); npd->type = REPLACE; npd->data.replace.replacethis = replacethis; @@ -90,7 +90,7 @@ bool process_find(tSyntaxElement* tree, tProcessingData** p_pdata) { token->next->next != NULL && se_istraversable(token->next->next) && token->next->next->next != NULL) { - tProcessingData* npd = malloc(sizeof(tSyntaxElement)); + tProcessingData* npd = malloc(sizeof(tProcessingData)); npd->type = FUNCTION;