From 99bdca709e3b507a1c6fc8abb193a61844ff65b8 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 26 Aug 2011 22:43:48 +0200 Subject: [PATCH 2/3] activation: fix return value of update_desktop_file_entry() Make sure we actually return retval, and that it is initialized properly. --- bus/activation.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/bus/activation.c b/bus/activation.c index d5424a7..4d0a469 100644 --- a/bus/activation.c +++ b/bus/activation.c @@ -263,6 +263,7 @@ update_desktop_file_entry (BusActivation *activation, exec_tmp = NULL; entry = NULL; systemd_service = NULL; + retval = FALSE; dbus_error_init (&tmp_error); @@ -465,7 +466,7 @@ out: if (entry) bus_activation_entry_unref (entry); - return FALSE; + return retval; } static dbus_bool_t -- 1.7.6