fe5a3ca24a
Also: - Enable the tests since kernel bug is fixed.
28 lines
813 B
Diff
28 lines
813 B
Diff
From 030c5e2573faa84887b09b847bb48a280a698f1f Mon Sep 17 00:00:00 2001
|
|
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
Date: Sun, 16 Feb 2014 12:55:48 +0000
|
|
Subject: [PATCH 1/2] Don't pass NULL pointer to asprintf when generating --run
|
|
command.
|
|
|
|
This fixes commit 4ce0dbc3f425e6d609cc6739dac8c23b44b1c61b.
|
|
---
|
|
src/main.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/main.c b/src/main.c
|
|
index 9c1c2f0..9dcd030 100644
|
|
--- a/src/main.c
|
|
+++ b/src/main.c
|
|
@@ -546,7 +546,7 @@ run_command (void)
|
|
"port='%s'\n"
|
|
"unixsocket='%s'\n"
|
|
"%s",
|
|
- url, port, unixsocket, run);
|
|
+ url, port ? port : "", unixsocket ? unixsocket : "", run);
|
|
if (r == -1) {
|
|
perror ("asprintf");
|
|
exit (EXIT_FAILURE);
|
|
--
|
|
1.8.4.2
|
|
|