Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
gnome-session
Commits
33bc7b8b
Commit
33bc7b8b
authored
Oct 19, 2020
by
Benjamin Berg
Committed by
Benjamin Berg
Dec 03, 2020
Browse files
main: Use already defined error from main function.
parent
a24600d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
gnome-session/main.c
View file @
33bc7b8b
...
...
@@ -539,7 +539,6 @@ main (int argc, char **argv)
#ifdef ENABLE_SYSTEMD_SESSION
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
);
}
#endif
/* ENABLE_SYSTEMD_SESSION */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment