Skip to content

Commit

Permalink
Initialize index and quotes variables. (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sweets committed Oct 9, 2021
1 parent a36f251 commit 38d11a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/notification.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++]))
Expand Down

0 comments on commit 38d11a7

Please sign in to comment.