diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2012-03-22 15:40:10 +0000 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2012-07-17 16:39:34 +0200 |
commit | d7ed9151c074b6432ab554beeef7b5990d420c6f (patch) | |
tree | 8d20af5bd7e3ef745bab48b4260c6a722af945d7 /tubes/source | |
parent | 5f6afa7d221d5801434d223141a9f87e802c3046 (diff) |
tubes manager: fix a compiler warning
Diffstat (limited to 'tubes/source')
-rw-r--r-- | tubes/source/manager.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tubes/source/manager.cxx b/tubes/source/manager.cxx index ed53a102d793..8dd0fe24e3a0 100644 --- a/tubes/source/manager.cxx +++ b/tubes/source/manager.cxx @@ -164,10 +164,11 @@ static void TeleManager_DBusChannelHandler( tp_handle_channels_context_accept( pContext); else { - GError aError = { TP_ERRORS, TP_ERROR_CONFUSED, + GError *pError = g_error_new_literal( TP_ERRORS, TP_ERROR_CONFUSED, "None of these channels were LibreOffice D-Bus tubes; " - "why did the Channel Dispatcher give them to us?" }; - tp_handle_channels_context_fail( pContext, &aError); + "why did the Channel Dispatcher give them to us?"); + tp_handle_channels_context_fail( pContext, pError); + g_clear_error (&pError); } } |