Skip to content

Commit 00ccf6a

Browse files
committed
zero structure first before using
1 parent d021c71 commit 00ccf6a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/core/settings.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ static void parse_binds(const char* optarg_const)
6767
}
6868
settings.bind_num = num;
6969
settings.bind = (scache_bind*)malloc(sizeof(scache_bind) * num);
70+
memset(settings.bind, 0, sizeof(scache_bind) * num);
7071
scache_bind* current = settings.bind;
7172
for (int i = 0; i <= len; i++)
7273
{

0 commit comments

Comments
 (0)