From: Philippe De Swert Date: Thu, 18 Sep 2014 15:56:56 +0000 (+0300) Subject: core: Remove uninitialized warnings from bus-endpoint.c X-Git-Tag: v217~518 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=96f2f3b1b5f44eb59d23d2abeac12b33a18e1e21 core: Remove uninitialized warnings from bus-endpoint.c Gcc is spewing some warnings about uninitialized variables. Let's get rid of the noise. --- diff --git a/src/core/bus-endpoint.c b/src/core/bus-endpoint.c index 1e8f07eb5..aac540dde 100644 --- a/src/core/bus-endpoint.c +++ b/src/core/bus-endpoint.c @@ -34,8 +34,8 @@ int bus_endpoint_new(BusEndpoint **ep) int bus_endpoint_add_policy(BusEndpoint *ep, const char *name, BusPolicyAccess access) { - _cleanup_free_ BusEndpointPolicy *po; - _cleanup_free_ char *key; + _cleanup_free_ BusEndpointPolicy *po = NULL; + _cleanup_free_ char *key = NULL; int r; assert(ep);