Commit 33bc7b8b authored by Benjamin Berg's avatar Benjamin Berg Committed by Benjamin Berg
Browse files

main: Use already defined error from main function.

parent a24600d7
......@@ -539,7 +539,6 @@ main (int argc, char **argv)
if (use_systemd && !systemd_service) {
g_autoptr(GError) error = NULL;
g_autofree gchar *gnome_session_target;
const gchar *session_type;
......@@ -571,6 +570,7 @@ main (int argc, char **argv)
/* We could not start the unit, fall back. */
g_warning ("Falling back to non-systemd startup procedure due to error: %s", error->message);
g_clear_error (&error);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment