[all-commits] [llvm/llvm-project] 34aa2e: Save the result of getenv() to a string

Akira Hatanaka via All-commits all-commits at lists.llvm.org
Thu Jan 5 23:00:03 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 34aa2e24c89ae39c0db4254d8aafcae0285dbe34
      https://github.com/llvm/llvm-project/commit/34aa2e24c89ae39c0db4254d8aafcae0285dbe34
  Author: Akira Hatanaka <ahatanaka at apple.com>
  Date:   2023-01-05 (Thu, 05 Jan 2023)

  Changed paths:
    M clang/tools/driver/driver.cpp

  Log Message:
  -----------
  Save the result of getenv() to a string

The result has to be saved to a string as the result might be
overwritten by subsequent calls to getenv.

https://pubs.opengroup.org/onlinepubs/009696899/functions/getenv.html

See the discussion here: https://reviews.llvm.org/D137996#4029305




More information about the All-commits mailing list