#include "main/imports.h"
#include "symbol_table.h"
#include "../../util/hash_table.h"
+#include "util/u_string.h"
struct symbol {
/** Symbol name. */
new_sym->next_with_same_name = sym;
new_sym->name = sym->name;
} else {
- new_sym->name = strdup(name);
+ new_sym->name = util_strdup(name);
if (new_sym->name == NULL) {
free(new_sym);
_mesa_error_no_memory(__func__);
sym->name = inner_sym->name;
} else {
- sym->name = strdup(name);
+ sym->name = util_strdup(name);
if (sym->name == NULL) {
free(sym);
_mesa_error_no_memory(__func__);