# ErrorBundle.addOtherSourceLocation: Fix source_line ending up as garbage when source_line is 0 · gitcafe/zig

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

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

Visibility: public

Requested revision: fc69529dab66254d353975844034dab545a7335b

Requested commit: fc69529dab66254d353975844034dab545a7335b

Commit: fc69529dab66254d353975844034dab545a7335b

Tree: 73fb5b1a72ba10c19c4e59b34e6866cbe2b9df6d

Author: Ryan Liptak

Committer: Ryan Liptak

## Message

```
ErrorBundle.addOtherSourceLocation: Fix source_line ending up as garbage when source_line is 0

The zero value needs special handling since it means 'no source line' and should be preserved through the copy.

```

## Parents

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

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