Avoid gcc warning 'retval' might be used uninitialized in this function The compiler is actually right and this is a bug. There is another such warning: tools/dbus-send.c:356: warning: 'secondary_type' might be ... Since that type of warning indicates a potential problem it would be nice if that warning could be avoided. diff -ur dbus-1.2.4.orig/bus/activation.c dbus-1.2.4/bus/activation.c --- dbus-1.2.4.orig/bus/activation.c 2008-08-07 20:44:35.000000000 +0200 +++ dbus-1.2.4/bus/activation.c 2008-11-21 12:05:00.000000000 +0100 @@ -722,11 +722,7 @@ _dbus_string_set_length (&value, 0); } - if (environment[i] != NULL) - goto out; - - retval = TRUE; -out: + retval = (environment[i] == NULL ? TRUE : FALSE); _dbus_string_free (&key); _dbus_string_free (&value);