# fix undefined behavior triggered by fn inline test · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/1999f0daad505f414f97845ecde0a56b3c2fedfd)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 1999f0daad505f414f97845ecde0a56b3c2fedfd

Requested commit: 1999f0daad505f414f97845ecde0a56b3c2fedfd

Commit: 1999f0daad505f414f97845ecde0a56b3c2fedfd

Tree: 185598cde3a3f8b2320484e262899db5bc85b09e

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix undefined behavior triggered by fn inline test

LLVM destroys the string that we use to test if LLVM deleted the
inlined function.

Also fixed forgetting to initialize a buffer in std lib path detection.

```

## Parents

- [0f652b4d80a57f5b5a1054d06cd5767ce52402a1](https://git.cafe/gitcafe/zig/commit/0f652b4d80a57f5b5a1054d06cd5767ce52402a1?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/1999f0daad505f414f97845ecde0a56b3c2fedfd?format=markdown)
