projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b88a40a
)
core: Remove uninitialized warnings from bus-endpoint.c
author
Philippe De Swert
<philippedeswert@gmail.com>
Thu, 18 Sep 2014 15:56:56 +0000
(18:56 +0300)
committer
Tom Gundersen
<teg@jklm.no>
Thu, 18 Sep 2014 16:32:18 +0000
(18:32 +0200)
Gcc is spewing some warnings about uninitialized variables.
Let's get rid of the noise.
src/core/bus-endpoint.c
patch
|
blob
|
history
diff --git
a/src/core/bus-endpoint.c
b/src/core/bus-endpoint.c
index 1e8f07eb54c10d9e64887a4bd0afb2e788b43f0f..aac540ddee3dbc28951a21109d4777e868a55b12 100644
(file)
--- 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);