summaryrefslogtreecommitdiff
path: root/src/test-env-replace.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-02-23 01:12:07 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-23 01:12:07 +0100
commit21bc923aa35d455cdef1607eb7022608c705c9f3 (patch)
treedd3258fedfadbd93b1ba9d7534cc43f128c4c052 /src/test-env-replace.c
parent80758717a6359cbe6048f43a17c2b53a3ca8c2fa (diff)
ask-password: supported plymouth cached passwords
Diffstat (limited to 'src/test-env-replace.c')
-rw-r--r--src/test-env-replace.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test-env-replace.c b/src/test-env-replace.c
index 4188c67dde..05dbacd7df 100644
--- a/src/test-env-replace.c
+++ b/src/test-env-replace.c
@@ -48,6 +48,14 @@ int main(int argc, char *argv[]) {
};
char **i, **r, *t, **a, **b;
+ const char nulstr[] = "fuck\0fuck2\0fuck3\0\0fuck5\0\0xxx";
+
+ a = strv_parse_nulstr(nulstr, sizeof(nulstr)-1);
+
+ STRV_FOREACH(i, a)
+ printf("nulstr--%s\n", *i);
+
+ strv_free(a);
r = replace_env_argv((char**) line, (char**) env);