aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-02-13 22:31:29 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2016-02-13 22:31:29 +0100
commita4b04963a3741400322e0c18a3fc4d6d1bc8547f (patch)
treea949867df0ba206929e968c101243e76d76609a5
parent03829ac8b0720ae025f6f43aedc60ff9c1f1f040 (diff)
afm-run: adds control
Change-Id: Iafe0d7c8cc9d9c43bd3e039ce0644d6580d8bdb2 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afm-run.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/afm-run.c b/src/afm-run.c
index c414ceb..4ab77a8 100644
--- a/src/afm-run.c
+++ b/src/afm-run.c
@@ -282,6 +282,8 @@ int afm_run_start(struct json_object *appli, enum afm_launch_mode mode, char **u
sigset_t saved, blocked;
assert(launch_mode_is_valid(mode));
+ assert(mode == mode_local || uri != NULL);
+ assert(uri == NULL || *uri == NULL);
/* prepare to launch */
rc = fill_launch_desc(appli, mode, &desc);