discard null data nodes

This commit is contained in:
Nikita Smith
2025-05-12 16:00:28 -07:00
committed by Ryan Fleury
parent 3ffd8c19ea
commit c5164bd490
+3 -1
View File
@@ -170,7 +170,9 @@ coff_obj_writer_push_section(COFF_ObjWriter *obj_writer, String8 name, COFF_Sect
sect->name = name;
sect->flags = flags;
str8_list_push(obj_writer->arena, &sect->data, data);
if (data.size) {
str8_list_push(obj_writer->arena, &sect->data, data);
}
return sect;
}