diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2007-12-05 17:56:13 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2007-12-05 17:56:13 +0000 |
commit | 3d87f3ac6c4aeffd0e93cacd8956474c194b6989 (patch) | |
tree | c45083020344caf23f48051d85d3faaaa4fd9d4b /tools/xenstore | |
parent | dc5b64fd6149123af9a1230eb2819a27e505e3a9 (diff) | |
download | xen-3d87f3ac6c4aeffd0e93cacd8956474c194b6989.tar.gz xen-3d87f3ac6c4aeffd0e93cacd8956474c194b6989.tar.bz2 xen-3d87f3ac6c4aeffd0e93cacd8956474c194b6989.zip |
xenstore: expanding_buffer variables are supposed to be static. Apart
from anything else, this was guaranteeing they were initialised.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/xenstore')
-rw-r--r-- | tools/xenstore/xenstore_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/xenstore/xenstore_client.c b/tools/xenstore/xenstore_client.c index 0f36356233..e4c18ae8e9 100644 --- a/tools/xenstore/xenstore_client.c +++ b/tools/xenstore/xenstore_client.c @@ -138,7 +138,7 @@ perform(int optind, int argc, char **argv, struct xs_handle *xsh, { while (optind < argc) { #if defined(CLIENT_read) - struct expanding_buffer ebuf; + static struct expanding_buffer ebuf; unsigned len; char *val = xs_read(xsh, xth, argv[optind], &len); if (val == NULL) { @@ -151,7 +151,7 @@ perform(int optind, int argc, char **argv, struct xs_handle *xsh, free(val); optind++; #elif defined(CLIENT_write) - struct expanding_buffer ebuf; + static struct expanding_buffer ebuf; char *val_spec = argv[optind + 1]; unsigned len; expanding_buffer_ensure(&ebuf, strlen(val_spec)+1); |