inpcom.c, reorder some statements

This commit is contained in:
rlar 2013-05-30 17:24:09 +02:00
parent d19f75381c
commit 4d4d51c27b
1 changed files with 4 additions and 4 deletions

View File

@ -2145,10 +2145,10 @@ inp_fix_subckt(struct names *subckt_w_params, char *s)
if (new_str == NULL) {
new_str = strdup(c->li_line);
} else {
char *str = new_str;
new_str = TMALLOC(char, strlen(str) + strlen(c->li_line) + 2);
sprintf(new_str, "%s %s", str, c->li_line);
tfree(str);
char *x = TMALLOC(char, strlen(new_str) + strlen(c->li_line) + 2);
sprintf(x, "%s %s", new_str, c->li_line);
tfree(new_str);
new_str = x;
}
tfree(c->li_line);
head = c;