VFS/terminal: fix clang warning

Variable-sized object may not be initialized.

Issue #3564
This commit is contained in:
Ehmry - 2019-11-28 13:51:21 +01:00 committed by Christian Helmuth
parent 648382db74
commit 7f57de1b74
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class Vfs::Terminal_file_system::Data_file_system : public Single_file_system
if (buf_size == 0)
break;
char buf[buf_size] { };
char buf[buf_size];
unsigned const received = terminal.read(buf, buf_size);