commit | 8596581d0899c6f7bbfd9f68dece61777a2e32be | [log] [tgz] |
---|---|---|
author | Joel Stanley <joel@jms.id.au> | Thu Mar 17 20:38:12 2016 +1030 |
committer | Jeremy Kerr <jk@ozlabs.org> | Fri Mar 18 09:53:09 2016 +0800 |
tree | 5eea6e56e094be8bb8bfc11806a9ff40a9e6cf07 | |
parent | fbff1c658520bcdd0ea883384dd95161b33a7b6f [diff] |
console-client: Initialise prc before acessing it On the first time through the loop, if the test is false: if (pollfds[0].revents) ... then prc is uninitalised when we access it here: if (prc == PROCESS_OK && ... To avoid this, initialise it to PROCESS_OK. [jk: Minor change to use PROCESS_OK instead of PROCESS_ERR] Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>