summaryrefslogtreecommitdiffstats
path: root/src/libudev/libudev-list.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-02-01 19:23:31 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-02-01 19:23:31 +0100
commitecf83c24295bbb7b940c91fb2aab387db74ef685 (patch)
treededbd8a296dd7a2616eca08396dc8b096d255eb9 /src/libudev/libudev-list.c
parentlibudev: unset uptodate flag before free()ing entries (diff)
downloadsystemd-ecf83c24295bbb7b940c91fb2aab387db74ef685.tar.xz
systemd-ecf83c24295bbb7b940c91fb2aab387db74ef685.zip
libudev: add one more assertion
Diffstat (limited to 'src/libudev/libudev-list.c')
-rw-r--r--src/libudev/libudev-list.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libudev/libudev-list.c b/src/libudev/libudev-list.c
index d992d1879b..69efc1013c 100644
--- a/src/libudev/libudev-list.c
+++ b/src/libudev/libudev-list.c
@@ -73,6 +73,7 @@ struct udev_list_entry *udev_list_entry_add(struct udev_list *list, const char *
_cleanup_free_ char *name = NULL, *value = NULL;
assert(list);
+ assert(_name);
name = strdup(_name);
if (!name)