correct zeroing of allplots array

This commit is contained in:
Holger Vogt
2020-04-25 10:27:49 +02:00
parent fdbcdb5b7d
commit 0cd33d3fbb
+1 -1
View File
@@ -1018,7 +1018,7 @@ char** ngSpice_AllPlots(void)
allplots[i] = pl->pl_typename; allplots[i] = pl->pl_typename;
pl = pl->pl_next; pl = pl->pl_next;
} }
allplots[len] = '\0'; allplots[len] = NULL;
return allplots; return allplots;
} }