should check for this
This commit is contained in:
parent
d45e720763
commit
5de1772d5f
1 changed files with 8 additions and 6 deletions
14
src/core.c
14
src/core.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue