Browse Source

Prevent crash when no simulation has been run and

asking for plotting an event node
pre-master-46
Holger Vogt 4 years ago
parent
commit
7130097710
  1. 6
      src/xspice/evt/evtplot.c

6
src/xspice/evt/evtplot.c

@ -152,6 +152,12 @@ struct dvec *EVTfindvec(
/* Get the UDN type index */ /* Get the UDN type index */
udn_index = node_table[i]->udn_index; udn_index = node_table[i]->udn_index;
if (!g_mif_info.ckt->evt->data.node) {
// fprintf(stderr, "Warning: No event data available! \n Simulation not yet run?\n");
tfree(name);
return(NULL);
}
/* Count the number of events */ /* Count the number of events */
head = g_mif_info.ckt->evt->data.node->head[i]; head = g_mif_info.ckt->evt->data.node->head[i];

Loading…
Cancel
Save