|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From 96f2f3b1b5f44eb59d23d2abeac12b33a18e1e21 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From: Philippe De Swert <philippedeswert@gmail.com>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Date: Thu, 18 Sep 2014 18:56:56 +0300
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Subject: [PATCH] core: Remove uninitialized warnings from bus-endpoint.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Gcc is spewing some warnings about uninitialized variables.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Let's get rid of the noise.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
src/core/bus-endpoint.c | 4 ++--
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/src/core/bus-endpoint.c b/src/core/bus-endpoint.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index 1e8f07eb54..aac540ddee 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/src/core/bus-endpoint.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/src/core/bus-endpoint.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -34,8 +34,8 @@ int bus_endpoint_new(BusEndpoint **ep)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
int bus_endpoint_add_policy(BusEndpoint *ep, const char *name, BusPolicyAccess access)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
{
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- _cleanup_free_ BusEndpointPolicy *po;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- _cleanup_free_ char *key;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ _cleanup_free_ BusEndpointPolicy *po = NULL;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ _cleanup_free_ char *key = NULL;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
int r;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
assert(ep);
|