diff options
author | Eric Engestrom <[email protected]> | 2018-11-20 11:42:14 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-07-19 22:39:38 +0100 |
commit | 3ba199abd122e52734effc64426f57578d9e38a2 (patch) | |
tree | 06f6a5ad40096382d193bb198a03fddff1e107b9 /src/mesa/program | |
parent | 09a8a39940ad02951b62454a5d222af669fef694 (diff) |
util: use standard name for strdup()
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/program')
-rw-r--r-- | src/mesa/program/symbol_table.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/program/symbol_table.c b/src/mesa/program/symbol_table.c index e01faa5c6e1..0dcb1f292c9 100644 --- a/src/mesa/program/symbol_table.c +++ b/src/mesa/program/symbol_table.c @@ -194,7 +194,7 @@ _mesa_symbol_table_add_symbol(struct _mesa_symbol_table *table, new_sym->next_with_same_name = sym; new_sym->name = sym->name; } else { - new_sym->name = util_strdup(name); + new_sym->name = strdup(name); if (new_sym->name == NULL) { free(new_sym); _mesa_error_no_memory(__func__); @@ -266,7 +266,7 @@ _mesa_symbol_table_add_global_symbol(struct _mesa_symbol_table *table, sym->name = inner_sym->name; } else { - sym->name = util_strdup(name); + sym->name = strdup(name); if (sym->name == NULL) { free(sym); _mesa_error_no_memory(__func__); |