afm-launch: removes a fatal warning
[src/app-framework-main.git] / src / afm-launch.c
index f2a5065..c1c6fdd 100644 (file)
@@ -54,10 +54,9 @@ extern char **environ;
 
 static const char *args_for_afb_daemon[] = {
        "/usr/bin/afb-daemon",
-       "--daemon",
        "--alias=/icons:%I",
        "--port=%P",
-       "--rootdir=%D",
+       "--rootdir=%r",
        "--token=%S",
        NULL
 };
@@ -118,6 +117,7 @@ static char **instantiate_arguments(const char **args, struct afm_launch_desc *d
 
        /* loop that either compute the size and build the result */
        data = NULL;
+       result = NULL;
        n = s = 0;
        for (;;) {
                iter = args;