[Telepathy-commits] [telepathy-glib/master] Use strchr instead of strstr when searching for a single character.
Xavier Claessens
xclaesse at gmail.com
Fri Feb 20 07:00:49 PST 2009
---
telepathy-glib/connection.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/telepathy-glib/connection.c b/telepathy-glib/connection.c
index 10ef46b..11d688d 100644
--- a/telepathy-glib/connection.c
+++ b/telepathy-glib/connection.c
@@ -1467,12 +1467,12 @@ tp_connection_parse_object_path (TpConnection *self,
return FALSE;
cm_name_start = object_path + strlen (TP_CONN_OBJECT_PATH_BASE);
- protocol_start = strstr (cm_name_start, "/");
+ protocol_start = strchr (cm_name_start, '/');
if (protocol_start == NULL)
return FALSE;
protocol_start++;
- account_start = strstr (protocol_start, "/");
+ account_start = strchr (protocol_start, '/');
if (account_start == NULL)
return FALSE;
account_start++;
--
1.5.6.5
More information about the telepathy-commits
mailing list