diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-23 22:00:28 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-24 06:18:48 +0800 |
commit | 9498d6a67a0085d0bab3e49cd11288daa6474771 (patch) | |
tree | 498b36fac1079226864437286ffb8929e160a5b6 /src | |
parent | 4b5fa08436333e571186c991496549be520f21eb (diff) | |
download | gsoc2013-empathy-9498d6a67a0085d0bab3e49cd11288daa6474771.tar gsoc2013-empathy-9498d6a67a0085d0bab3e49cd11288daa6474771.tar.gz gsoc2013-empathy-9498d6a67a0085d0bab3e49cd11288daa6474771.tar.bz2 gsoc2013-empathy-9498d6a67a0085d0bab3e49cd11288daa6474771.tar.lz gsoc2013-empathy-9498d6a67a0085d0bab3e49cd11288daa6474771.tar.xz gsoc2013-empathy-9498d6a67a0085d0bab3e49cd11288daa6474771.tar.zst gsoc2013-empathy-9498d6a67a0085d0bab3e49cd11288daa6474771.zip |
Use g_str_has_prefix convenience function for clarity
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-import-mc4-accounts.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/empathy-import-mc4-accounts.c b/src/empathy-import-mc4-accounts.c index 4ce8d4e80..8fa8d5845 100644 --- a/src/empathy-import-mc4-accounts.c +++ b/src/empathy-import-mc4-accounts.c @@ -19,6 +19,7 @@ * Authors: Arnaud Maillet <arnaud.maillet@collabora.co.uk> */ +#include <stdio.h> #include <string.h> #include <glib.h> #include <gconf/gconf-client.h> @@ -120,7 +121,7 @@ _account_name_from_key (const gchar *key) guint base_len = strlen (MC_ACCOUNTS_GCONF_BASE); const gchar *base, *slash; - g_assert (key == strstr (key, MC_ACCOUNTS_GCONF_BASE)); + g_assert (g_str_has_prefix (key, MC_ACCOUNTS_GCONF_BASE)); g_assert (strlen (key) > base_len + 1); base = key + base_len + 1; |