diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2010-11-20 11:31:32 +0000 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2010-11-30 21:36:22 +0000 |
commit | 877802c153392f272d9708a0f15c81b679c51042 (patch) | |
tree | 265aff881628b88ac65539acaa0dc4f620bc7d26 /examples | |
parent | 94240be7cef4d878410cb0843063d4f75b270edb (diff) |
examples/connect: always call wocky_init().
The previous fix, in d0977e8, only called wocky_init() on one branch.
Thus, the example worked in 'connector' mode, but not in 'raw' mode (the
default)...
We should just call it up-front alongside g_type_init().
Diffstat (limited to 'examples')
-rw-r--r-- | examples/connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/connect.c b/examples/connect.c index a1fc43b..b74ed20 100644 --- a/examples/connect.c +++ b/examples/connect.c @@ -382,6 +382,7 @@ main (int argc, const char *type = "raw"; g_type_init (); + wocky_init (); if ((argc < 3) || (argc > 4)) { @@ -398,7 +399,6 @@ main (int argc, if (!strcmp ("connector",type)) { WockyConnector *wcon = NULL; - wocky_init (); wcon = wocky_connector_new (argv[1], argv[2], NULL, NULL, NULL); wocky_connector_connect_async (wcon, NULL, connector_callback, NULL); |