diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-02-23 01:12:07 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-02-23 01:12:07 +0100 |
commit | 21bc923aa35d455cdef1607eb7022608c705c9f3 (patch) | |
tree | dd3258fedfadbd93b1ba9d7534cc43f128c4c052 /src/test-env-replace.c | |
parent | 80758717a6359cbe6048f43a17c2b53a3ca8c2fa (diff) |
ask-password: supported plymouth cached passwords
Diffstat (limited to 'src/test-env-replace.c')
-rw-r--r-- | src/test-env-replace.c | 8 |
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); |