mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 15:47:59 +02:00
update_desktop_file_entry: initialize return value properly, and actually return it
Since 1.4.4 (commit 75cfd97f) this function always returned FALSE. As far
as I can see this was actually harmless, because both of its callers
ignore any error that is not NoMemory (and treat it the same as success).
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39230
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
This commit is contained in:
parent
c38e9823da
commit
423ab7cdd0
1 changed files with 2 additions and 1 deletions
|
|
@ -268,6 +268,7 @@ update_desktop_file_entry (BusActivation *activation,
|
|||
|
||||
_DBUS_ASSERT_ERROR_IS_CLEAR (error);
|
||||
|
||||
retval = FALSE;
|
||||
name = NULL;
|
||||
exec = NULL;
|
||||
user = NULL;
|
||||
|
|
@ -478,7 +479,7 @@ out:
|
|||
if (entry)
|
||||
bus_activation_entry_unref (entry);
|
||||
|
||||
return FALSE;
|
||||
return retval;
|
||||
}
|
||||
|
||||
static dbus_bool_t
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue