Fix segfault
This commit is contained in:
parent
95862b56d2
commit
3a3014f9a3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user