fix wrong netlist filename if invoking netlist from GUI

This commit is contained in:
stefan schippers 2023-08-28 11:39:00 +02:00
parent 0805802bb8
commit cd3f188a30
1 changed files with 1 additions and 1 deletions

View File

@ -2317,7 +2317,7 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
if(!strcmp(argv[2], "-messages")) {
messages = 1;
if(argc > 3) fname = argv[3];
} else {
} else if(strcmp(argv[2], "-erc")) {
fname = argv[2];
}
if(fname) {