init all of text struct in input_text()

This gets rid off valgrind warning on unitialized variables
This commit is contained in:
Stanislav Laznicka 2019-10-04 17:53:26 +02:00
parent 63d207e2fc
commit 7dc2fb16dd
No known key found for this signature in database
GPG Key ID: C98C414936B1A7F3
1 changed files with 2 additions and 0 deletions

View File

@ -115,6 +115,8 @@ void input_text(struct text* target, u64 len)
target->end = target->text;
target->visible_start = target->text;
target->len = len;
target->x = 0;
target->y = 0;
}
void input_desktop_free(struct desktop* target)