obsdfreqd: explicitely initialize current_mode to battery mode

This commit is contained in:
Solene Rapenne 2022-04-09 17:19:16 +02:00
parent dc5448729f
commit feb3ac237a
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -132,7 +132,7 @@ int main(int argc, char *argv[]) {
long cpu[CPUSTATES], cpu_previous[CPUSTATES];
int frequency = 0;
int current_mode;
int current_mode = 0;
int value, current_frequency, inertia_timer = 0;
int cpu_usage_percent = 0, cpu_usage;
float temp;