hash_table: Make string_to_uint_map make a copy of the name
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 7 Oct 2011 21:29:51 +0000 (14:29 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 10 Oct 2011 17:21:20 +0000 (10:21 -0700)
commitf3650b05cf4e37066d0f142a4c14fcc650de8d8d
treee89e7273a92aa96267ebb06545cf4c8c8d5fed89
parent9e66b25880febecb529582c6ead920637d73f51e
hash_table: Make string_to_uint_map make a copy of the name

The hash table needs a copy of the key that it can keep for
comparisons during searches.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41499
Cc: Stéphane Marchesin <stephane.marchesin@gmail.com>
Tested-by: Luzipher <luziphermcleod@yahoo.ie>
Tested-by: Michał Lipski <tallica@o2.pl>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/program/hash_table.h