Initialize unused variable in FileKindTestCase to avoid a warning

Avoid -Wmaybe-uninitialized from gcc 11.
This commit is contained in:
Vadim Zeitlin 2022-06-29 22:10:55 +02:00
parent 8064abb0d6
commit c1a573d216

View file

@ -175,7 +175,7 @@ void FileKindTestCase::SocketStream()
//
void FileKindTestCase::MemoryStream()
{
char buf[20];
char buf[20] = { 0 };
wxMemoryInputStream inStream(buf, sizeof(buf));
CPPUNIT_ASSERT(inStream.IsSeekable());
wxMemoryOutputStream outStream(buf, sizeof(buf));