diff options
author | Petr Rockai <prockai@redhat.com> | 2010-03-31 23:11:12 +0000 |
---|---|---|
committer | Petr Rockai <prockai@redhat.com> | 2010-03-31 23:11:12 +0000 |
commit | a39d299df4efa2ca439244dc5468ae3b468db380 (patch) | |
tree | 8c8d4adfd24c1edad956452fb931c737b6a94bb3 | |
parent | 43e3c22ae4f7fb561fd67412e6adf5bc1e53b371 (diff) | |
download | lvm2-a39d299df4efa2ca439244dc5468ae3b468db380.tar.gz lvm2-a39d299df4efa2ca439244dc5468ae3b468db380.tar.xz lvm2-a39d299df4efa2ca439244dc5468ae3b468db380.zip |
Do not pass NULL to setenv in the test harness.
-rw-r--r-- | test/harness.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/harness.c b/test/harness.c index 5788c9c4..6a7471d3 100644 --- a/test/harness.c +++ b/test/harness.c @@ -128,7 +128,8 @@ int main(int argc, char **argv) { status = alloca(sizeof(int)*argc); char *config = getenv("LVM_TEST_CONFIG"), *config_debug; - asprintf(&config_debug, "%s\n%s", config ? config : "", "log {\n verbose=4\n }"); + config = config ? config : ""; + asprintf(&config_debug, "%s\n%s\n", config, "log { verbose=4 }"); if (socketpair(PF_UNIX, SOCK_STREAM, 0, fds)) { perror("socketpair"); |