homectl: insert missing 'else'

Follow-up for cc14c14782.
Fixes CID#1593168 and CID#1593166.
This commit is contained in:
Yu Watanabe
2025-03-13 04:56:49 +09:00
parent c5a5046792
commit 26835b3e98
+1 -1
View File
@@ -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;