waybar/src/modules/cpu
Ed Ralston 7abcbe80e5
Prevent segfault in getCpuFrequency
When parseCpuFrequencies returns an empty vector, getCpuFrequency
would attempt to dereference an invalid iterator.

Return early from getCpuFrequency when parseCpuFrequencies returns an
empty vector.

Resolves a segfault when waybar is run within a VM on apple silicon.
2022-05-19 20:01:57 -04:00
..
bsd.cpp fix: bsd 2022-04-06 14:55:08 +02:00
common.cpp Prevent segfault in getCpuFrequency 2022-05-19 20:01:57 -04:00
linux.cpp refactor: lint 2022-04-06 08:37:19 +02:00