From: Daniel Wagner <[email protected]>

When the error path is taken, uid was not initialized. This
is not a problem since we also pass in the error code to the
callback.

Reported by clang and coverty.
---
 src/dbus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dbus.c b/src/dbus.c
index a584bb3..4943b96 100644
--- a/src/dbus.c
+++ b/src/dbus.c
@@ -421,7 +421,7 @@ static void get_connection_unix_user_reply(DBusPendingCall 
*call,
        DBusMessageIter iter;
        DBusMessage *reply;
        int err = 0;
-       unsigned int uid;
+       unsigned int uid = 0;
 
        reply = dbus_pending_call_steal_reply(call);
 
-- 
1.8.4.474.g128a96c

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to