sd-dhcp-client: add assert_not_reached in switch case

Tell static analysis that r is always initialised

Follow-up for 1809132064

CID#1533109
This commit is contained in:
Luca Boccassi
2024-01-04 14:30:20 +01:00
parent 5af0f171f9
commit 1323a222d2
@@ -135,6 +135,8 @@ int sd_dhcp_client_id_to_string(const sd_dhcp_client_id *client_id, char **ret)
r = asprintf(&t, "IAID:0x%x/DUID", iaid);
}
break;
default:
assert_not_reached();
}
if (r < 0)
return -ENOMEM;