diff options
-rw-r--r-- | src/afm-run.c | 2 |
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); |