Explicitly set len_append to 0 if nothing to append.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2019-12-29 02:41:13 +01:00
parent 82b136aeca
commit 9477add980
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ void MastoAPI::post_item(const Item &item)
{
if (_profile.append.empty())
{
return size_t{};
return size_t{0};
}
return _profile.append.size() + 2;
}()};