should check for this

This commit is contained in:
Nishi 2025-12-25 05:05:49 +09:00
commit 5de1772d5f
Signed by: nishi
GPG key ID: 27EF69B208EB9343

View file

@ -234,13 +234,15 @@ int xl_parse(xemil_t* handle) {
nest_level--;
str = xl_util_trim(current->text);
free(current->text);
current->text = str;
if(strlen(current->text) == 0) {
if(current->text != NULL){
str = xl_util_trim(current->text);
free(current->text);
current->text = NULL;
current->text = str;
if(strlen(current->text) == 0) {
free(current->text);
current->text = NULL;
}
}
proc = 1;