Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
input: make flb_input_new() zero-initialize input instances
I noticed that Fluent Bit sometimes fails to start up with SIGSEGV, seemingly at random. The reason turned out that some fields in flb_input_instance were not initialized to NULL properly, so conditionals such as if (in->host.listen) { listen = in->host.listen; } ... were not really reliable, and could pass a random memory location to variables. Fix it. Signed-off-by: Fujimoto Seiji <[email protected]>
- Loading branch information