Use dstring_freeze() to cleanup some code.

This commit is contained in:
Bill Currie 2011-09-11 13:09:24 +09:00
parent 8bab548d16
commit e5add8b4f5
1 changed files with 1 additions and 4 deletions

View File

@ -264,7 +264,6 @@ qfs_var_subst (const char *string, hashtab_t *vars)
const char *s = string;
const char *e = s;
const char *var;
char *t;
qfs_var_t *sub;
while (1) {
@ -307,9 +306,7 @@ qfs_var_subst (const char *string, hashtab_t *vars)
s = e;
}
}
t = new->str;
free (new);
return t;
return dstring_freeze (new);
}
static void