diff options
author | Daniel Kamil Kozar <dkk089@gmail.com> | 2017-09-17 03:39:55 +0200 |
---|---|---|
committer | Daniel Kamil Kozar <dkk089@gmail.com> | 2017-09-17 03:39:55 +0200 |
commit | 8e8d8d8b7c0cb85b85fcf03e36a3d87dc69feb78 (patch) | |
tree | bd0ea3c9e98ee44250b853d622b2a669618603a2 | |
parent | 249537e8467f32adaecc64d828bf2abdd044dda6 (diff) | |
download | pidgin-8e8d8d8b7c0cb85b85fcf03e36a3d87dc69feb78.tar.gz |
Fix minor gcc warnings
A cascade of unused-but-set variables in media.c and a missing
dereference in gg/buddylist.c.
-rw-r--r-- | libpurple/media.c | 11 | ||||
-rw-r--r-- | libpurple/protocols/gg/buddylist.c | 2 |
2 files changed, 1 insertions, 12 deletions
diff --git a/libpurple/media.c b/libpurple/media.c index e4de10012c..5dad310e53 100644 --- a/libpurple/media.c +++ b/libpurple/media.c @@ -1494,23 +1494,12 @@ purple_media_send_dtmf(PurpleMedia *media, const gchar *session_id, gchar dtmf, guint8 volume, guint16 duration) { #ifdef USE_VV - PurpleAccount *account = NULL; - PurpleConnection *gc = NULL; - PurplePlugin *prpl = NULL; - PurplePluginProtocolInfo *prpl_info = NULL; PurpleMediaBackendIface *backend_iface = NULL; if (media) { - account = purple_media_get_account(media); backend_iface = PURPLE_MEDIA_BACKEND_GET_INTERFACE(media->priv->backend); } - if (account) - gc = purple_account_get_connection(account); - if (gc) - prpl = purple_connection_get_prpl(gc); - if (prpl) - prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(prpl); if (dtmf == 'a') dtmf = 'A'; diff --git a/libpurple/protocols/gg/buddylist.c b/libpurple/protocols/gg/buddylist.c index 5f361d2b74..2a49d03ab8 100644 --- a/libpurple/protocols/gg/buddylist.c +++ b/libpurple/protocols/gg/buddylist.c @@ -123,7 +123,7 @@ void ggp_buddylist_load(PurpleConnection *gc, char *buddylist) g = g_strdup("Gadu-Gadu"); - if ('\0' != data_tbl[F_GROUP]) { + if ('\0' != *(data_tbl[F_GROUP])) { /* XXX: Probably buddy should be added to all the groups. */ /* Hard limit to at most 50 groups */ gchar **group_tbl = g_strsplit(data_tbl[F_GROUP], ",", 50); |