tools/tests: fix an xs-test.c issue
authorWei Liu <wei.liu2@citrix.com>
Mon, 20 Aug 2018 08:38:18 +0000 (09:38 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 20 Aug 2018 10:50:17 +0000 (11:50 +0100)
commit3a2b8525b883baa87fe89b3da58f5c09fa599b99
tree468cf03eacfcb9f252add736cd2cd8018e29607e
parent48a70499e6bf0f9742fd2d79cd8db5ec674213e2
tools/tests: fix an xs-test.c issue

The ret variable can be used uninitialised when iters is 0. Initialise
ret at the beginning to fix this issue.

Reported-by: Steven Haigh <netwiz@crc.id.au>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/tests/xenstore/xs-test.c