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:
parent
43e3c22ae4
commit
a39d299df4
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user