Skip to content
Snippets Groups Projects
Commit d2c1d1d7 authored by Ed Coyne's avatar Ed Coyne Committed by CQ bot account: commit-bot@chromium.org
Browse files

[subprocess] Address autoinit errors.

Enabling -fauto-var-init exposed errors due to not initializing locals, ZX-3970.

This fixes the tests, but also initializes all variables here to prevent
future bugs.

It also fixes a possible bug where we try to use a command read from the
channel even if the channel read failed.

Test: runtests -t {job-test, process-test} now pass.
Change-Id: I3fcdb46d0d22400519615de781d57e6c41a460e6
parent db1e11ef
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment