strings: Also reset length when moving a string

This commit is contained in:
Laria 2021-12-15 23:20:16 +01:00
parent c0e47b14e6
commit 86e1c1339d

View file

@ -81,6 +81,7 @@ apfl_string_move(struct apfl_string *src)
{
struct apfl_string out = *src;
src->bytes = NULL;
src->len = 0;
return out;
}