test-char: fix AddressSanitizer failure
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 9 Sep 2019 13:06:42 +0000 (15:06 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Sep 2019 10:32:21 +0000 (12:32 +0200)
commit0c9956f8213ad1074474f2f938574043e4ee5dfd
tree5f704f453921a5147c160dd580e1ffac2c54935b
parentf64f598ad96977d2e511be0355d4ae48ecb4f694
test-char: fix AddressSanitizer failure

The CharSocketServerTestConfig and CharSocketClientTestConfig
objects escape after they are passed to g_test_add_data_func,
but they cease existing after the scope that defines them is
closed.  Make them static to fix this issue.

Fixes: e7b6ba4186f243f149b0d8cddc129fe681ba3912
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/test-char.c