1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-25 20:59:42 +02:00

eeshow/sch-parse.c (recurse_sheet): sheet->title must be malloc'ed

This commit is contained in:
Werner Almesberger 2016-08-14 12:13:33 -03:00
parent 93b7269a3e
commit c00f065993

View File

@ -332,7 +332,7 @@ static struct sheet *recurse_sheet(struct sch_ctx *ctx,
if (!other->has_children &&
file_oid_eq(other->oid, oid)) {
ctx->curr_sheet = parent;
sheet->title = other->title;
sheet->title = stralloc(other->title);
sheet->objs = other->objs;
return sheet;
}