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)
Fri, May 16, 9:21 AM
Unknown Object (File)
Thu, May 15, 3:53 PM
Unknown Object (File)
Thu, May 8, 8:39 PM
Unknown Object (File)
Fri, May 2, 8:45 PM
Unknown Object (File)
Mar 8 2025, 11:55 PM
Unknown Object (File)
Feb 14 2025, 9:37 AM
Unknown Object (File)
Feb 12 2025, 11:18 PM
Unknown Object (File)
Feb 10 2025, 8:22 PM
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.