https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96486
Bug ID: 96486 Summary: get_environment_variable fails for zero-length variables Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: jussilehtola at fedoraproject dot org Target Milestone: --- get_environment_variable checks for zero-length value strings before it checks the length of the result string. In the case of zero-length result strings, a zero-length value string should be perfectly acceptable.