[libc-commits] [libc] [libc] Add program_invocation(_short)_name and tweak err.h functions (PR #212448)

Jeff Bailey via libc-commits libc-commits at lists.llvm.org
Tue Jul 28 05:45:23 PDT 2026


================
@@ -83,6 +85,15 @@ static TLSDescriptor tls;
   // Initialize the POSIX global declared in unistd.h
   environ = reinterpret_cast<char **>(env_ptr);
 
+  if (app.args->argc > 0 && app.args->argv[0] != 0) {
----------------
kaladron wrote:

```suggestion
  if (app.args->argc > 0 && app.args->argv[0] != nullptr) {
```

https://github.com/llvm/llvm-project/pull/212448


More information about the libc-commits mailing list