1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Do not pass NULL to setenv in the test harness.

This commit is contained in:
Petr Rockai 2010-03-31 23:11:12 +00:00
parent 43e3c22ae4
commit a39d299df4

View File

@ -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");