summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2012-12-04 12:59:47 -0800
committerDan Nicholson <dbn.lists@gmail.com>2012-12-04 13:04:01 -0800
commit43f20b96a3d35bdcc34ec7409acdfdb3149ff426 (patch)
treecf68fd2d709a301793acc4d6ac5de078ed003be0
parent428335e2b55c368955269e97370e2185c08a47db (diff)
downloadpkg-config-43f20b96a3d35bdcc34ec7409acdfdb3149ff426.tar.gz
Fix one hash table optimization to use key=value
Commit 428335e changed some hash tables to be used as sets where the key equals the value since glib has some optimization for that. Unfortunately, the package list stripping table wasn't fixed corectly.
-rw-r--r--pkg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg.c b/pkg.c
index c2f9825..aaa80f4 100644
--- a/pkg.c
+++ b/pkg.c
@@ -693,7 +693,7 @@ package_list_strip_duplicates (GList *packages)
else
{
/* Unique package. Track it and move to the next. */
- g_hash_table_replace (requires, pkg->key, pkg);
+ g_hash_table_replace (requires, pkg->key, pkg->key);
}
}
g_hash_table_destroy (requires);