Skip to content
Snippets Groups Projects

[FCHost][Linux] Prevent crash constructing string from nulltpr

Merged shiro requested to merge shiro/fc-pregmod:shiro-pregmod-master-patch-20970 into pregmod-master

If XDG_CURRENT_DESKTOP isn't set, getenv returns a nullptr. Constructing a std::string from nullptr will throw an exception. This prevents a crash when not using a DE, but zenity or kdialog is installed regardless

(also fixes a typo where the fallthrough attribute wasn't applied to anything due to a missing semicolon)

Merge request reports

Approval is optional

Merged by PregmodderPregmodder 2 years ago (Sep 25, 2022 12:52am UTC)

Loading

Pipeline #52597 passed

Pipeline passed for 3457970b on pregmod-master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading