[telepathy-mission-control/master] McdDispatchOperation: allow handler_path to be ""

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Apr 7 05:18:30 PDT 2009


telepathy-spec says this is allowed, and results in handling with a
handler of the ChannelDispatcher's choice. Alberto already implemented
those semantics, for NULL.
---
 src/mcd-dispatch-operation.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mcd-dispatch-operation.c b/src/mcd-dispatch-operation.c
index 389ab6f..469424e 100644
--- a/src/mcd-dispatch-operation.c
+++ b/src/mcd-dispatch-operation.c
@@ -547,7 +547,7 @@ mcd_dispatch_operation_handle_with (McdDispatchOperation *operation,
         return;
     }
 
-    if (handler_path)
+    if (handler_path != NULL && handler_path[0] != '\0')
     {
         if (strncmp (handler_path, MCD_CLIENT_BASE_NAME,
                      MCD_CLIENT_BASE_NAME_LEN) != 0)
-- 
1.5.6.5




More information about the telepathy-commits mailing list