summaryrefslogtreecommitdiff
path: root/telepathy-glib/debug.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2008-08-07 13:19:32 +0000
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2008-08-07 13:19:32 +0000
commitf4f59d37df94325fe636238a5979c79890cc505c (patch)
tree523adb1113787fdb574d731d3813d4bdf42c5e4b /telepathy-glib/debug.c
parent3b0b76dbc1d30af00dbaf46c74f171e2f8e0a936 (diff)
downloadtelepathy-glib-f4f59d37df94325fe636238a5979c79890cc505c.tar.gz
tp_debug_divert_messages: check the first char of the filename instead of using g_str_has_prefix
20080807131932-7fe3f-75e56d32893e561c71c9970c780a18d007e5f0a1.gz
Diffstat (limited to 'telepathy-glib/debug.c')
-rw-r--r--telepathy-glib/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/telepathy-glib/debug.c b/telepathy-glib/debug.c
index 7191d234a..37687c014 100644
--- a/telepathy-glib/debug.c
+++ b/telepathy-glib/debug.c
@@ -322,7 +322,7 @@ tp_debug_divert_messages (const gchar *filename)
if (filename == NULL)
return;
- if (g_str_has_prefix (filename, "+"))
+ if (filename[0] == '+')
{
/* open in append mode */
fd = g_open (filename + 1, O_WRONLY | O_CREAT | O_APPEND, 0644);