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 #1147 by checking NULL pointers #1148

Merged
merged 1 commit into from
Feb 27, 2023
Merged

Conversation

ShellCode33
Copy link
Contributor

Please review carefully, I'm not familiar at all with dunst nor Wayland. This might not be the right way to fix #1147.

@codecov-commenter
Copy link

codecov-commenter commented Feb 26, 2023

Codecov Report

Merging #1148 (42c8b84) into master (7bd8e6b) will decrease coverage by 0.07%.
The diff coverage is 0.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##           master    #1148      +/-   ##
==========================================
- Coverage   65.96%   65.90%   -0.07%     
==========================================
  Files          46       46              
  Lines        7548     7555       +7     
==========================================
  Hits         4979     4979              
- Misses       2569     2576       +7     
Flag Coverage Δ
unittests 65.90% <0.00%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/draw.c 51.35% <0.00%> (-0.33%) ⬇️
src/wayland/wl.c 0.00% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@fwsmit
Copy link
Member

fwsmit commented Feb 26, 2023

The change seems sensible. Have you tested if this fixes the bug?

@ShellCode33
Copy link
Contributor Author

ShellCode33 commented Feb 26, 2023

The bug doesn't seem to occur anymore with that patch

EDIT: dunst has been running for more than 6 hours with no issue

@fwsmit
Copy link
Member

fwsmit commented Feb 27, 2023

Thanks! The patch looks good, so I'll merge it

@fwsmit fwsmit merged commit 9a44823 into dunst-project:master Feb 27, 2023
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.

Segmentation fault on Wayland (ctx.current_buffer is NULL)
3 participants