diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2012-12-04 12:59:47 -0800 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2012-12-04 13:04:01 -0800 |
commit | 43f20b96a3d35bdcc34ec7409acdfdb3149ff426 (patch) | |
tree | cf68fd2d709a301793acc4d6ac5de078ed003be0 | |
parent | 428335e2b55c368955269e97370e2185c08a47db (diff) | |
download | pkg-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |