diff options
author | David Tardon <dtardon@redhat.com> | 2022-08-09 14:35:15 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2022-09-13 08:13:27 +0200 |
commit | 995340074e554b4bf4a0fdb0cb7436692c5a4ffd (patch) | |
tree | ca3ee001db3e608ee80478f42fea9c3b409f1b7b /src/network/networkd-route-util.c | |
parent | Merge pull request #23087 from yuwata/udev-watch (diff) | |
download | systemd-995340074e554b4bf4a0fdb0cb7436692c5a4ffd.tar.xz systemd-995340074e554b4bf4a0fdb0cb7436692c5a4ffd.zip |
tree-wide: use ASSERT_PTR more
Diffstat (limited to 'src/network/networkd-route-util.c')
-rw-r--r-- | src/network/networkd-route-util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/networkd-route-util.c b/src/network/networkd-route-util.c index 4c9920b609..312f5f298a 100644 --- a/src/network/networkd-route-util.c +++ b/src/network/networkd-route-util.c @@ -449,13 +449,12 @@ int config_parse_route_table_names( void *data, void *userdata) { - Manager *m = userdata; + Manager *m = ASSERT_PTR(userdata); int r; assert(filename); assert(lvalue); assert(rvalue); - assert(userdata); if (isempty(rvalue)) { m->route_table_names_by_number = hashmap_free(m->route_table_names_by_number); |