summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hidd/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hidd/main.c b/hidd/main.c
index 78501fea..bdbb4013 100644
--- a/hidd/main.c
+++ b/hidd/main.c
@@ -257,7 +257,8 @@ static char *hidp_state[] = {
static char *hidp_flagstostr(uint32_t flags)
{
- static char str[100] = "";
+ static char str[100];
+ str[0] = 0;
strcat(str, "[");