changeset 3901:2bb32f15569e

some cleanups
author William Pitcock <nenolod@atheme.org>
date Tue, 06 Nov 2007 12:33:03 -0600
parents 44ab3d6057da
children 1792ab581321
files src/libaudclient/audctrl.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/libaudclient/audctrl.c	Tue Nov 06 12:23:24 2007 -0600
+++ b/src/libaudclient/audctrl.c	Tue Nov 06 12:33:03 2007 -0600
@@ -964,7 +964,7 @@
  **/
 gchar *audacious_get_tuple_field_data(DBusGProxy *proxy, gchar *field,
                                       guint pos) {
-    GValue value;
+    GValue value = {};
     gchar *s = NULL;
 
     org_atheme_audacious_song_tuple(proxy, pos, field, &value, &error);
@@ -978,7 +978,7 @@
         s = g_strescape(g_value_get_string(&value), NULL);
     else if (g_value_type_transformable(G_VALUE_TYPE(&value), G_TYPE_STRING))
     {
-        GValue tmp_value = {};
+        GValue tmp_value = { 0, };
 
         g_value_init(&tmp_value, G_TYPE_STRING);
         g_value_transform(&value, &tmp_value);
@@ -991,7 +991,6 @@
         s = g_strdup("<unknown type>");
 
     g_value_unset(&value);
-
     return s;
 }