mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 13:53:30 +02:00
Don't do the second lookup if the name was already canonical. (#171502,
2005-03-25 Matthias Clasen <mclasen@redhat.com> * gparam.c (param_spec_ht_lookup): Don't do the second lookup if the name was already canonical. (#171502, Morten Welinder)
This commit is contained in:
committed by
Matthias Clasen
parent
6e51f47e13
commit
45dc8b5c9a
@@ -739,7 +739,7 @@ param_spec_ht_lookup (GHashTable *hash_table,
|
||||
else
|
||||
pspec = g_hash_table_lookup (hash_table, &key);
|
||||
|
||||
if (!pspec)
|
||||
if (!pspec && !is_canonical (param_name))
|
||||
{
|
||||
/* try canonicalized form */
|
||||
key.name = g_strdup (param_name);
|
||||
|
Reference in New Issue
Block a user