X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=test%2Fspawn-test.c;h=f1a550510547600aa09c4385fc2893213aba378c;hb=a431ced6790c601bbc7a25160b33df3d5d0c852f;hp=f323368f217ad4c598260bd7031524b7d0a8a30e;hpb=03b9ca6d4ecf2577958530b8390d675c73a58825;p=platform%2Fupstream%2Fdbus.git diff --git a/test/spawn-test.c b/test/spawn-test.c index f323368..f1a5505 100644 --- a/test/spawn-test.c +++ b/test/spawn-test.c @@ -1,3 +1,4 @@ +#include #include #define DBUS_COMPILATION /* cheat and use dbus-sysdeps */ @@ -31,11 +32,13 @@ main (int argc, char **argv) argv_copy [i] = argv[i + 1]; argv_copy[argc - 1] = NULL; - if (!_dbus_spawn_async_with_babysitter (NULL, argv_copy, setup_func, NULL, &error)) + if (!_dbus_spawn_async_with_babysitter (NULL, argv_copy, NULL, setup_func, NULL, &error)) { fprintf (stderr, "Could not launch application: \"%s\"\n", error.message); } - + + dbus_free(argv_copy); + return 0; }