Fix warnings 'implicit-fallthrough' of gcc 7
[src/app-framework-main.git] / src / afm-launch.c
index 9ed5966..1a354a1 100644 (file)
@@ -610,6 +610,7 @@ static union arguments instantiate_arguments(
                                                break;
                                        case '%':
                                                c = 0;
+                                               /*@fallthrough@*/
                                        default:
                                                mini[1] = c;
                                                v = mini;
@@ -771,6 +772,7 @@ static pid_t launch(
 
        /* executes the process */
        rc = execve(args[0], args, env);
+       access(args[0], X_OK);
        ERROR("failed to exec master %s: %m", args[0]);
        _exit(1);
        return -1;