From 847d1df1b3dba5fed137efcdbef2972fef3dd1c6 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Fri, 10 Mar 2023 02:14:55 +0100 Subject: [PATCH] xschem logic_get: return X instead of empty string if net has never been assigned --- src/scheduler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scheduler.c b/src/scheduler.c index 412d1126..4a6b712c 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -1864,7 +1864,7 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg */ else if(!strcmp(argv[1], "logic_get")) { - static char s[2]="."; + static char s[2]="X"; Tcl_ResetResult(interp); if(argc > 2) { Hilight_hashentry *entry; @@ -1887,8 +1887,8 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg s[0] = '2'; break; } - Tcl_SetResult(interp, s, TCL_VOLATILE); } + Tcl_SetResult(interp, s, TCL_VOLATILE); } }