https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89788

            Bug ID: 89788
           Summary: trunk/liboffloadmic/runtime/emulator/coi_host.cpp:175]
                    : (error) Null pointer dereference
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Source code is

  DIR *dir = opendir (path);
  if (dir == NULL)
    COIERROR ("Cannot open directory %s.", dir);

maybe better code:

  DIR *dir = opendir (path);
  if (dir == NULL)
    COIERROR ("Cannot open directory %s.", path);

Reply via email to