aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore/xenstore_client.c
diff options
context:
space:
mode:
authoremellor@ewan <emellor@ewan>2005-09-13 15:46:20 +0100
committeremellor@ewan <emellor@ewan>2005-09-13 15:46:20 +0100
commit4482ab5c8761b09ff70a825baade2539d2987fb0 (patch)
tree771f9567f65206f1a42dabc8e22c70e82a7e0f2d /tools/xenstore/xenstore_client.c
parent296cdec9cf0865d5d91adff9ed0ef6ed2c1ab093 (diff)
downloadxen-4482ab5c8761b09ff70a825baade2539d2987fb0.tar.gz
xen-4482ab5c8761b09ff70a825baade2539d2987fb0.tar.bz2
xen-4482ab5c8761b09ff70a825baade2539d2987fb0.zip
Fix the check that the argument count is even, for xenstore_write.
Diffstat (limited to 'tools/xenstore/xenstore_client.c')
-rw-r--r--tools/xenstore/xenstore_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/xenstore/xenstore_client.c b/tools/xenstore/xenstore_client.c
index 842aca33fe..28be87859b 100644
--- a/tools/xenstore/xenstore_client.c
+++ b/tools/xenstore/xenstore_client.c
@@ -77,7 +77,7 @@ main(int argc, char **argv)
/* NOTREACHED */
}
#if defined(CLIENT_write)
- if ((argc - optind) % 1) {
+ if ((argc - optind) % 2 == 1) {
usage(argv[0]);
/* NOTREACHED */
}