ngmultidec.c, drop superfluous TMALLOC string allocation

This commit is contained in:
rlar
2014-04-05 18:44:16 +02:00
parent 1a0a00c9c2
commit 2881eef750
+1 -3
View File
@@ -264,8 +264,7 @@ main (int argc, char **argv)
fprintf(stdout,"\n"); fprintf(stdout,"\n");
fprintf(stdout,"* Lossy line models\n"); fprintf(stdout,"* Lossy line models\n");
options = TMALLOC(char, 256); options = "rel=1.2 nocontrol";
(void) strcpy(options,"rel=1.2 nocontrol");
for (i=1;i<=num;i++) { for (i=1;i<=num;i++) {
fprintf(stdout,".model mod%d_%s ltra %s r=%0.12g l=%0.12g g=%0.12g c=%0.12g len=%0.12g\n", fprintf(stdout,".model mod%d_%s ltra %s r=%0.12g l=%0.12g g=%0.12g c=%0.12g len=%0.12g\n",
i,name,options,r,l+tpeigenvalues[i]*lm,g,ctot-tpeigenvalues[i]*cm,len); i,name,options,r,l+tpeigenvalues[i]*lm,g,ctot-tpeigenvalues[i]*cm,len);
@@ -335,7 +334,6 @@ main (int argc, char **argv)
tfree(matrix); tfree(matrix);
tfree(inverse); tfree(inverse);
tfree(name); tfree(name);
tfree(options);
return EXIT_NORMAL; return EXIT_NORMAL;
} }