From: David Herrmann Date: Wed, 7 Jan 2015 16:50:28 +0000 (+0100) Subject: names: fix uninitialized return value X-Git-Tag: upstream/0.20150129.081441utc~85 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ae295b17a610575195ad55f56a48a90c5933bbe;p=platform%2Fcore%2Fsystem%2Fkdbus-bus.git names: fix uninitialized return value A recent commit dropped the initialization of 'ret' so now it is returned uninitialized. Fix this! The commit in question is: commit de18809ec40380e0d4681141281555f7df35b303 Author: Daniel Mack Date: Wed Jan 7 15:48:54 2015 +0100 names: ignore return value of kdbus_notify_name_change Signed-off-by: David Herrmann --- diff --git a/names.c b/names.c index be51911..257c6cb 100644 --- a/names.c +++ b/names.c @@ -153,7 +153,7 @@ static int kdbus_name_replace_owner(struct kdbus_name_entry *e, struct kdbus_conn *conn, u64 flags) { struct kdbus_conn *conn_old = kdbus_conn_ref(e->conn); - int ret; + int ret = 0; if (WARN_ON(conn == conn_old)) return -EALREADY;