[F] Fixed incorrect error processing

This commit is contained in:
seleznevae
2019-01-02 09:52:31 +03:00
parent fee7ed20ba
commit 155a47a5dd
3 changed files with 15 additions and 3 deletions

View File

@@ -38,6 +38,8 @@ fort_cell_t *copy_cell(fort_cell_t *cell)
assert(cell);
fort_cell_t *result = create_cell();
if (result == NULL)
return NULL;
destroy_string_buffer(result->str_buffer);
result->str_buffer = copy_string_buffer(cell->str_buffer);
if (result->str_buffer == NULL) {