winegcc: Don't call strendswith() with a NULL output_name.
Fixes: e3bf6e5e ("winegcc: Store all the boolean options in global variables.") Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58006
Merge request reports
Activity
This fix solves the segfault issue (wine 10.4 + this MR):
❯ winegcc --version gcc (GCC) 14.2.1 20250110 (Red Hat 14.2.1-7) Copyright (C) 2024 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Tested on Fedora 41 x86_64 shared-WoW64 build from: https://copr.fedorainfracloud.org/coprs/patrickl/test/build/8806880/
Superseded by ebebb210
Please register or sign in to reply