Skip to contentSkip to conversation

LVM2/test harness.c

PATCH [email protected] 1 participant 1 message Mar 31, 2010

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall at sourceware.org 2010-03-31 23:11:13

Modified files:
test : harness.c

Log message:
Do not pass NULL to setenv in the test harness.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/harness.c.diff?cvsroot=lvm2&r1=1.5&r2=1.6

test/harness.c +2 -1
@@ -128,7 +128,8 @@
 	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");