diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-02-01 19:23:31 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-02-01 19:23:31 +0100 |
commit | ecf83c24295bbb7b940c91fb2aab387db74ef685 (patch) | |
tree | dedbd8a296dd7a2616eca08396dc8b096d255eb9 /src/libudev/libudev-list.c | |
parent | libudev: unset uptodate flag before free()ing entries (diff) | |
download | systemd-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.c | 1 |
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) |