From 26835b3e98303c1470b5bb68914ced6fca84d5ce Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 13 Mar 2025 04:52:48 +0900 Subject: [PATCH] homectl: insert missing 'else' Follow-up for cc14c14782d542b35fa12bfdadfd64ffa700cedf. Fixes CID#1593168 and CID#1593166. --- src/home/homectl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/home/homectl.c b/src/home/homectl.c index 291ce8eaf1..65243e4a6f 100644 --- a/src/home/homectl.c +++ b/src/home/homectl.c @@ -2548,7 +2548,7 @@ static int create_or_register_from_credentials(void) { const char *e; if ((e = startswith(de->d_name, "home.create."))) op = OPERATION_CREATE; - if ((e = startswith(de->d_name, "home.register."))) + else if ((e = startswith(de->d_name, "home.register."))) op = OPERATION_REGISTER; else continue;