]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/unit.c
core/unit: use assert for checking internal call sanity
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 8 Nov 2023 08:11:07 +0000 (09:11 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 13 Nov 2023 12:27:36 +0000 (13:27 +0100)
commitffcf54d4fb422e39c3d0a6c5f2ec62889d971bdc
tree4be3277fb05cb95a3ad6e65910bf20427026e760
parentfa5a025167eb861b30d384d3dc293b71914aa006
core/unit: use assert for checking internal call sanity

The only way this could be called with an invalid value would be if
somebody forgot to initialize unit type. In such cases, it's better to
fail hard immediately.
src/core/unit.c