diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2012-07-31 12:11:15 +0200 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2012-07-31 12:11:15 +0200 |
commit | ffd0031b6cce90332d744a7aad370e5cd694cbba (patch) | |
tree | 40c0be37227d960a5cf4a40a9d6e25fc7abdf9ee /daemon | |
parent | 881ffc4130e199c95170df311a7b61d5da8a55dc (diff) |
gdbus: Use g_variant_is_of_type() instead of strcmp()
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/gvfsbackendsftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gvfsbackendsftp.c b/daemon/gvfsbackendsftp.c index 672f8d49..190e20df 100644 --- a/daemon/gvfsbackendsftp.c +++ b/daemon/gvfsbackendsftp.c @@ -352,7 +352,7 @@ read_dbus_string_dict_value (GVariant *args, const gchar *key) const gchar *str, *val; gchar *res; - if (g_strcmp0 (g_variant_get_type_string (args), "(a{ss})") != 0) + if (! g_variant_is_of_type (args, G_VARIANT_TYPE ("(a{ss})"))) return NULL; g_variant_get (args, "(@a{ss})", &a); |