]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
libudev: add one more assertion 18432/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 1 Feb 2021 18:23:31 +0000 (03:23 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 1 Feb 2021 18:23:31 +0000 (03:23 +0900)
src/libudev/libudev-list.c

index d992d1879bfe7d9f6c070eb42d53d493f5053378..69efc1013c1e724336486391c34bce20ee4803b0 100644 (file)
@@ -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)