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>
1 file changed