In order for pname to be assigned a value the loop must have performed an interation. The order of assignment and use of 'pname' is not the natural order you'd expect. It also looks like the TxPrint message may display the incorrect port name from the previous loop iteration. The code block looks like the resolution of 'pname' has no side-effects. So should be done first so the correct port name is output in the log message. SonarCloud 2nd function call argument is an uninitialized value https://sonarcloud.io/project/issues?open=AZJB17lqNGfDNup0Rk6f&id=dlmiles_magic |
||
|---|---|---|
| .. | ||
| Makefile | ||
| ext2hier.c | ||
| ext2spice.c | ||
| ext2spice.h | ||
| spice2sim | ||