]> xenbits.xensource.com Git - xen.git/commit
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)
committerIan Jackson <ian.jackson@eu.citrix.com>
Mon, 8 Oct 2018 14:31:28 +0000 (15:31 +0100)
commit33664f9a05401fac8f2c0be0bb7ee8a1851e4dcf
tree845fd2f1df5d64a4179707566027e4514bd923bd
parenta2e35a759249bd8b6ffeeebc0a3bc96d9cca2fba
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>
(cherry picked from commit 3a2b8525b883baa87fe89b3da58f5c09fa599b99)
tools/tests/xenstore/xs-test.c