diff --git a/src/process.c b/src/process.c index fa83dd3..2881a35 100644 --- a/src/process.c +++ b/src/process.c @@ -31,7 +31,9 @@ bool process_find(tSyntaxElement* tree, tProcessingData** p_pdata) { tProcessingData* pd = *p_pdata; bool deffound = false; if (se_istraversable(tree)) - if (tree->content.syntax->type == TOKEN && tree->content.syntax->next != NULL) { + if (tree->content.syntax->type == TOKEN && + tree->content.syntax->next != NULL && + tree->content.syntax->next->next != NULL) { tSyntaxElement* token = tree->content.syntax; if (strcmp(token->content.string,"def") == 0) { char* replacethis = token->next->content.string;