Explicitly set len_append to 0 if nothing to append.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
82b136aeca
commit
9477add980
|
@ -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;
|
||||
}()};
|
||||
|
|
Loading…
Reference in New Issue
Block a user