Skip to content

Commit

Permalink
flatpak-proxy: Rename error variable for future changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hadess committed Jul 20, 2023
1 parent d3c1faa commit db671ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flatpak-proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -2271,18 +2271,18 @@ got_buffer_from_client (FlatpakProxyClient *client, ProxySide *side, Buffer *buf

if (client_message_generates_reply (header))
{
const char *error;
const char *error_str;

if (client->proxy->log_messages)
g_print ("*HIDDEN* (ping)\n");

if ((header->destination != NULL && header->destination[0] == ':') ||
(header->flags & G_DBUS_MESSAGE_FLAGS_NO_AUTO_START) != 0)
error = "org.freedesktop.DBus.Error.NameHasNoOwner";
error_str = "org.freedesktop.DBus.Error.NameHasNoOwner";
else
error = "org.freedesktop.DBus.Error.ServiceUnknown";
error_str = "org.freedesktop.DBus.Error.ServiceUnknown";

buffer = get_error_for_roundtrip (client, header, error);
buffer = get_error_for_roundtrip (client, header, error_str);
expecting_reply = EXPECTED_REPLY_REWRITE;
}
else
Expand Down

0 comments on commit db671ed

Please sign in to comment.