Commit
7f97193e6aa858df ("tools/xenstore: add live update command to
xenstore-control") introduced testing an unsigned value to be less
than 0. Fix that.
Fixes: 7f97193e6aa858df ("tools/xenstore: add live update command to xenstore-control")
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
struct xs_handle *xsh;
char *par = NULL;
char *ret;
- unsigned int p, len = 0;
- int rc = 0;
+ unsigned int p;
+ int rc = 0, len = 0;
if (argc < 2) {
fprintf(stderr, "Usage:\n"