Skip to content

Commit

Permalink
Empty messages are valid
Browse files Browse the repository at this point in the history
  • Loading branch information
tumic0 committed Jan 7, 2025
1 parent 00c52d5 commit 30fee38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 30fee38

Please sign in to comment.