[yocto] [matchbox-wm][PATCH 2/3] matchbox-remote: Fix execvp() argument

Jussi Kukkonen jussi.kukkonen at intel.com
Wed Dec 7 05:22:56 PST 2016


The second argument is a NULL-terminated array.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen at intel.com>
---
 src/matchbox-remote.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/matchbox-remote.c b/src/matchbox-remote.c
index 9f62523..e6cc076 100644
--- a/src/matchbox-remote.c
+++ b/src/matchbox-remote.c
@@ -143,11 +143,13 @@ mbcommand(int cmd_id, char *data) {
        /* Check if desktop is running */
        if (!XGetSelectionOwner(dpy, desktop_manager_atom))
 	 {
+	   char *exec_args[] = { NULL };
+
 	   fprintf(stderr, "Desktop not running, exiting...\n");
 	   switch (fork())
 	     {
 	     case 0:
-	       execvp ("mbdesktop", NULL);
+	       execvp ("mbdesktop", exec_args);
 	       break;
 	     case -1:
 	       fprintf(stderr, "failed to exec mbdesktop");
-- 
2.11.0




More information about the yocto mailing list