pull: fix GLNX_HASH_TABLE_FOREACH_KV regressions
These are regression from #971. We were stuffing a pointer size inside a variable of integer size. So the assignment was spilling over into other variables' storage space. Actually use a gpointer and GPOINTER_TO_[U]INT as was done originally. Also bump libglnx which has static checks for this error in the future. Update submodule: libglnx Closes: #990 Approved by: cgwalters
This commit is contained in:
1 parent
acace571ef
commit
d5dd576d20
3 files changed
+6
-4
No files matched your search
@@ -4948,8 +4948,10 @@ ostree_repo_pull_from_remotes_async (OstreeRepo *self,
|
||||
|
||||
/* Any refs left un-downloaded? If so, we’ve failed. */
|
||||
GLNX_HASH_TABLE_FOREACH_KV (refs_pulled, const OstreeCollectionRef*, ref,
|
||||
gboolean, is_pulled)
|
||||
gpointer, is_pulled_pointer)
|
||||
{
|
||||
gboolean is_pulled = GPOINTER_TO_INT (is_pulled_pointer);
|
||||
|
||||
if (is_pulled)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in new issue
Block a user