aboutsummaryrefslogtreecommitdiff
path: root/src/sound-service-dbus.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-03-04 09:51:30 -0600
committerTed Gould <ted@gould.cx>2011-03-04 09:51:30 -0600
commitf01207e8ee86d4fd36cfefc1520be5b758799572 (patch)
tree6e45c52910d714abc17f36eed309f2cb67408ad1 /src/sound-service-dbus.c
parent0146cc8f82bca83ce7bff34ff412db762022ea06 (diff)
downloadayatana-indicator-sound-f01207e8ee86d4fd36cfefc1520be5b758799572.tar.gz
ayatana-indicator-sound-f01207e8ee86d4fd36cfefc1520be5b758799572.tar.bz2
ayatana-indicator-sound-f01207e8ee86d4fd36cfefc1520be5b758799572.zip
Fix the GStrv to use a string and be NULL terminated
Diffstat (limited to 'src/sound-service-dbus.c')
-rw-r--r--src/sound-service-dbus.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sound-service-dbus.c b/src/sound-service-dbus.c
index 67c7e47..580304f 100644
--- a/src/sound-service-dbus.c
+++ b/src/sound-service-dbus.c
@@ -148,10 +148,9 @@ sound_service_dbus_create_root_item (SoundServiceDbus* self)
priv->root_menuitem = dbusmenu_menuitem_new();
g_debug("Root ID: %d", dbusmenu_menuitem_get_id(priv->root_menuitem));
DbusmenuServer *server = dbusmenu_server_new (INDICATOR_SOUND_MENU_DBUS_OBJECT_PATH);
- gchar** paths = {'/usr/share/banshee-1/icons'};
+ gchar* paths[] = {"/usr/share/banshee-1/icons", NULL};
dbusmenu_server_set_icon_paths (server,
- g_strdupv(paths));
- g_strfreev (paths);
+ paths);
dbusmenu_server_set_root (server, priv->root_menuitem);
g_object_unref (priv->root_menuitem);
priv->active_sink = active_sink_new (self);