Page MenuHomeFreeBSD

bsddialog(3): fix disabled shadow
ClosedPublic

Authored by asiciliano on Apr 19 2022, 2:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 11 2024, 10:25 AM
Unknown Object (File)
Jan 7 2024, 3:19 AM
Unknown Object (File)
Jan 7 2024, 3:19 AM
Unknown Object (File)
Jan 7 2024, 3:19 AM
Unknown Object (File)
Jan 3 2024, 12:25 PM
Unknown Object (File)
Jan 2 2024, 7:19 PM
Unknown Object (File)
Dec 20 2023, 7:44 AM
Unknown Object (File)
Dec 12 2023, 3:25 AM
Subscribers

Details

Summary

Fix dialogs building and updating segmentation fault with disabled shadow (conf.shadow=false and implicitly bsddialog --no-shadow).
No component in BASE is affected.
Moreover delete WARNS: all warnings were fixed in upstream and imported in 0.2.

Test Plan

Trivial:

-       if (shadow != NULL)
+       if (conf->shadow)

(Probably the error was introduced during the last refactoring to improve the dialogs building process).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

asiciliano created this revision.
This revision is now accepted and ready to land.Apr 20 2022, 12:37 PM
This revision was automatically updated to reflect the committed changes.