Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: hash_table_set does not correcly remove items if NDEBUG is set #27

Merged
merged 1 commit into from Apr 8, 2017
Merged

Fix: hash_table_set does not correcly remove items if NDEBUG is set #27

merged 1 commit into from Apr 8, 2017

Conversation

ghost
Copy link

@ghost ghost commented Apr 7, 2017

With NDEBUG set lut_set_index(&table->meta, index, NULL) is not executed, so that chck_hash_table_get will still return a pointer to the cleared table entry.

I noticed the issue in sway/xwayland, because windows do not reappear if they are mapped again after an unmap event.

As far as I can tell this solves swaywm/sway#571 and possibly Cloudef/wlc#175 and Cloudef/wlc#104.

@Cloudef
Copy link
Owner

Cloudef commented Apr 8, 2017

Yeah, probably have to make similar macro that isn't affected by it later.

@Cloudef Cloudef merged commit ca402de into Cloudef:master Apr 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant