From 03d7f1dc6dc662a7353f8ca2165437e812481111 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Thu, 1 Dec 2022 21:27:55 +0000 Subject: [PATCH] output: Abort on invalid power state --- src/output.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/output.c b/src/output.c index a4c18ff..bb19f8f 100644 --- a/src/output.c +++ b/src/output.c @@ -270,6 +270,8 @@ const char* output_power_state_name(enum output_power_state state) case OUTPUT_POWER_UNKNOWN: return "??"; } + abort(); + return NULL; } static void output_power_mode(void *data,