Skip to content

Commit 91f9227

Browse files
committed
suppressor.c: Protection from mayhem if suppressor_init() called twice
1 parent a6b9a20 commit 91f9227

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/suppressor.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ static int suppressor_process_key(char *key);
2727

2828
void suppressor_init(unsigned int new_flags)
2929
{
30+
if (old_process_key)
31+
return;
32+
3033
if (!flags) {
3134
if (!(new_flags & SUPPRESSOR_UPDATE))
3235
return;

0 commit comments

Comments
 (0)