Tiny warning patch

Ross Burton ross at burtonini.com
Thu Oct 27 04:39:02 PDT 2005


Hi,

Tiny patch to stop gcc moaning that a variable can be used without being
set (it can't but there you go):

Index: glib/dbus-gobject.c
===================================================================
RCS file: /cvs/dbus/dbus/glib/dbus-gobject.c,v
retrieving revision 1.49
diff -u -r1.49 dbus-gobject.c
--- glib/dbus-gobject.c 25 Oct 2005 15:57:13 -0000      1.49
+++ glib/dbus-gobject.c 27 Oct 2005 11:37:45 -0000
@@ -440,7 +440,7 @@
   for (; properties; properties = properties->next)
     {
       const char *propname;
-      GParamSpec *spec;
+      GParamSpec *spec = NULL;
       char *dbus_type;
       gboolean can_set;
       gboolean can_get;

Ross
-- 
Ross Burton                                 mail: ross at burtonini.com
                                          jabber: ross at burtonini.com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF





More information about the dbus mailing list