Empty messages are valid

This commit is contained in:
Martin Tůma 2025-01-07 09:32:30 +01:00
parent 00c52d5ab7
commit 30fee38b25

View File

@ -325,6 +325,9 @@ static bool layer(CTX &ctx, Data::Layer &l)
bool Data::load(const QByteArray &ba)
{
if (ba.isEmpty())
return true;
CTX ctx(ba);
while (ctx.bp < ctx.be) {