Browse Source

ngmultidec.c, drop superfluous TMALLOC string allocation

pre-master-46
rlar 12 years ago
parent
commit
2881eef750
  1. 4
      src/ngmultidec.c

4
src/ngmultidec.c

@ -264,8 +264,7 @@ main (int argc, char **argv)
fprintf(stdout,"\n");
fprintf(stdout,"* Lossy line models\n");
options = TMALLOC(char, 256);
(void) strcpy(options,"rel=1.2 nocontrol");
options = "rel=1.2 nocontrol";
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",
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(inverse);
tfree(name);
tfree(options);
return EXIT_NORMAL;
}

Loading…
Cancel
Save