summaryrefslogtreecommitdiff
path: root/src/libudev/env-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libudev/env-util.c')
-rw-r--r--src/libudev/env-util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libudev/env-util.c b/src/libudev/env-util.c
index 0cb3977b37..c2381ec6a3 100644
--- a/src/libudev/env-util.c
+++ b/src/libudev/env-util.c
@@ -42,3 +42,8 @@ char *strv_env_get_n(char **l, const char *name, size_t k) {
return NULL;
}
+char *strv_env_get(char **l, const char *name) {
+ assert(name);
+
+ return strv_env_get_n(l, name, strlen(name));
+}