# wasm-linker: reset file pointer for incremental · gitcafe/zig

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

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

Visibility: public

Requested revision: 3edf8c7a6cb912597bbc97ad97d554e6e4d96cdb

Requested commit: 3edf8c7a6cb912597bbc97ad97d554e6e4d96cdb

Commit: 3edf8c7a6cb912597bbc97ad97d554e6e4d96cdb

Tree: 2039b9fb77c4f3ce9964a6622e51cf01e5fc874a

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-linker: reset file pointer for incremental

On each invocation of `flush()` the file pointer is moved.
This means that rather than overwriting the binary file,
we're appending to the file. With this commit, we're resetting
said pointer to '0' and overwrite the existing binary in incremental
mode.

```

## Parents

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

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