mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
Use dstring_freeze() to cleanup some code.
This commit is contained in:
parent
8bab548d16
commit
e5add8b4f5
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue