[monitoring-plugins] check_ups: fix some unintented fallthroughs ...

GitHub git at monitoring-plugins.org
Wed Jul 1 15:30:13 CEST 2026


    Module: monitoring-plugins
    Branch: master
    Commit: 26f7173923c0b4cb6c7e13c3adcf4dcc18c01d3b
    Author: Lorenz Kästle <12514511+RincewindsHat at users.noreply.github.com>
 Committer: GitHub <noreply at github.com>
      Date: Wed Jul  1 15:24:20 2026 +0200
       URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=26f71739

check_ups: fix some unintented fallthroughs (#2294)

---

 plugins/check_ups.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/plugins/check_ups.c b/plugins/check_ups.c
index 7bced308..525ecf24 100644
--- a/plugins/check_ups.c
+++ b/plugins/check_ups.c
@@ -630,14 +630,19 @@ check_ups_config_wrapper process_arguments(int argc, char **argv) {
 	switch (test_selection) {
 	case UPS_UTILITY:
 		result.config.utility_thresholds = tmp_thr;
+		break;
 	case UPS_BATTPCT:
 		result.config.battery_thresholds = tmp_thr;
+		break;
 	case UPS_LOADPCT:
 		result.config.load_thresholds = tmp_thr;
+		break;
 	case UPS_REALPOWER:
 		result.config.real_power_thresholds = tmp_thr;
+		break;
 	case UPS_TEMP:
 		result.config.temperature_thresholds = tmp_thr;
+		break;
 	case UPS_NONE:
 	case UPS_STATUS:
 	default: {



More information about the Commits mailing list