From 38d11a7f53eb1eda204b59b931fb8ad7f9063dda Mon Sep 17 00:00:00 2001 From: Sweets Date: Fri, 8 Oct 2021 23:41:01 -0700 Subject: [PATCH] Initialize index and quotes variables. (#31) --- src/notification.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notification.c b/src/notification.c index 3c75526..3eafa68 100644 --- a/src/notification.c +++ b/src/notification.c @@ -294,7 +294,7 @@ static void strsanitize(char **_string) { if (!string || strlen(string) == 0) return; - int index, quotes, output_index = 0; + int index = 0, quotes = 0, output_index = 0; char cell; while ((cell = string[index++]))