strings: Also reset length when moving a string
This commit is contained in:
parent
c0e47b14e6
commit
86e1c1339d
1 changed files with 1 additions and 0 deletions
|
|
@ -81,6 +81,7 @@ apfl_string_move(struct apfl_string *src)
|
|||
{
|
||||
struct apfl_string out = *src;
|
||||
src->bytes = NULL;
|
||||
src->len = 0;
|
||||
return out;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue