[Bug fortran/96486] New: get_environment_variable fails for zero-length variables

jussilehtola at fedoraproject dot org gcc-bugzilla@gcc.gnu.org
Wed Aug 5 16:03:33 GMT 2020


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.


More information about the Gcc-bugs mailing list