from anything else, this was guaranteeing they were initialised.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
{
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) {
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);