aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-02-14 12:47:48 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2016-02-14 12:47:48 +0100
commit997dbadce8ee4a3345b5a9074dcf60010c5781bc (patch)
treefe3c136f53ba5b87a5fda90b6d47e1889a5bdca5
parent6bf93414adf63909dbb9753c9eb5113b760fdeb8 (diff)
afm-launch: fix warnings
Change-Id: I7524edcf6a448efa14342d90e417d6046e84d29c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afm-launch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/afm-launch.c b/src/afm-launch.c
index 46bc4e0..cd820c5 100644
--- a/src/afm-launch.c
+++ b/src/afm-launch.c
@@ -403,6 +403,8 @@ static union arguments instantiate_arguments(
mini[2] = 0;
/* loop that either compute the size and build the result */
+ result.vector = NULL;
+ result.scalar = NULL;
data = NULL;
n = s = 0;
for (;;) {
@@ -735,7 +737,7 @@ static int launch_remote(
/* instanciate the uri */
if (params->slave == NULL)
- uri = strdup("");
+ uri = NULL;
else
uri = instantiate_arguments(params->slave, desc, params, 0).scalar;
if (uri == NULL) {