[systemd-devel] [PATCH] scope: Silence compiler warning

Dave Reisner d at falconindy.com
Tue Jul 2 07:50:19 PDT 2013


On Mon, Jul 01, 2013 at 05:16:02PM +0200, Jan Janssen wrote:
> ---
>  src/core/dbus-scope.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/core/dbus-scope.c b/src/core/dbus-scope.c
> index bddf8f4..f6cfe38 100644
> --- a/src/core/dbus-scope.c
> +++ b/src/core/dbus-scope.c
> @@ -93,7 +93,7 @@ static int bus_scope_set_transient_property(
>  
>          if (streq(name, "PIDs")) {
>                  DBusMessageIter sub;
> -                unsigned n;
> +                unsigned n = 0;

Apologies, I just fixed this myself in git without having seen this patch.

>  
>                  if (dbus_message_iter_get_arg_type(i) != DBUS_TYPE_ARRAY ||
>                      dbus_message_iter_get_element_type(i) != DBUS_TYPE_UINT32)
> -- 
> 1.8.3.2
> 
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


More information about the systemd-devel mailing list