diff options
-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) |