From 1d5ff211303497ad4de00683121ed226ebad5eea Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Fri, 10 Jan 2025 16:51:20 +0100 Subject: [PATCH] get_sch_from_sym() fix detection of empty instance `schematic` attribute --- src/actions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions.c b/src/actions.c index aaf181e5..46d72e06 100644 --- a/src/actions.c +++ b/src/actions.c @@ -2092,7 +2092,7 @@ void get_sch_from_sym(char *filename, xSymbol *sym, int inst, int fallback) dbg(1, "get_sch_from_sym(): symbol %s inst=%d web_url=%d\n", sym->name, inst, web_url); if(inst >= 0) { /* resolve schematic=generator.tcl( @n ) where n=11 is defined in instance attrs */ - my_strdup2(_ALLOC_ID_, &str_tmp, + my_strdup(_ALLOC_ID_, &str_tmp, translate3(get_tok_value(xctx->inst[inst].prop_ptr,"schematic", 6), 1, xctx->inst[inst].prop_ptr, NULL, NULL)); }