Fix : create args bug https://bugs.tizendev.org/jira/browse/N_SE-48080
authorGwangho Hwang <gwang.hwang@samsung.com>
Fri, 2 Aug 2013 11:26:57 +0000 (20:26 +0900)
committerGwangho Hwang <gwang.hwang@samsung.com>
Fri, 2 Aug 2013 11:26:57 +0000 (20:26 +0900)
Change-Id: I8a5f5e491740a9ee0602427c8aea7c3fd009a951
Signed-off-by: Gwangho Hwang <gwang.hwang@samsung.com>
packaging/debug-launchpad.spec
src/launchpad.c

index d617294..57d64f2 100644 (file)
@@ -1,6 +1,6 @@
 Name:       debug-launchpad
 Summary:    Debug Launchpad
-Version:    0.0.8
+Version:    0.0.9
 Release:    1
 Group:      System Environment/Daemons
 License:    Apache License, Version 2.0
index 42588d9..b4b7855 100755 (executable)
@@ -398,6 +398,7 @@ char **__create_argc_argv(bundle * kb, int *margc, const char *app_path)
                        argv[0] = strdup(buf);
                        new_argv = __add_arg(kb, argv, &argc, DLP_K_DEBUG_ARG);
                        new_argv[0] = strdup(PATH_GDBSERVER);
+                       argv = new_argv;
                }
                /* valgrind */
                else if (strncmp(str_array[i], SDK_VALGRIND
@@ -406,6 +407,7 @@ char **__create_argc_argv(bundle * kb, int *margc, const char *app_path)
                        new_argv = __add_arg(kb, argv, &argc
                                , DLP_K_VALGRIND_ARG);
                        new_argv[0] = strdup(PATH_VALGRIND);
+                       argv = new_argv;
                }
                /* unit test */
                else if (strncmp(str_array[i], SDK_UNIT_TEST
@@ -413,6 +415,7 @@ char **__create_argc_argv(bundle * kb, int *margc, const char *app_path)
                {
                        new_argv = __add_arg(kb, argv, &argc
                                , DLP_K_UNIT_TEST_ARG);
+                       argv = new_argv;
                }
        }