diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 14:41:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 14:41:01 +0000 |
commit | 1a2738532d1c95e1d48701628cd81ca96c267761 (patch) | |
tree | a67781318e259d176e6d6d056501bc6a372a8453 /debian/patches/main-Use-already-defined-error-from-main-function.patch | |
parent | Adding upstream version 3.38.0. (diff) | |
download | gnome-session-1a2738532d1c95e1d48701628cd81ca96c267761.tar.xz gnome-session-1a2738532d1c95e1d48701628cd81ca96c267761.zip |
Adding debian version 3.38.0-4.debian/3.38.0-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/main-Use-already-defined-error-from-main-function.patch')
-rw-r--r-- | debian/patches/main-Use-already-defined-error-from-main-function.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/patches/main-Use-already-defined-error-from-main-function.patch b/debian/patches/main-Use-already-defined-error-from-main-function.patch new file mode 100644 index 0000000..a22cc4e --- /dev/null +++ b/debian/patches/main-Use-already-defined-error-from-main-function.patch @@ -0,0 +1,29 @@ +From: Benjamin Berg <bberg@redhat.com> +Date: Mon, 19 Oct 2020 12:06:55 +0200 +Subject: main: Use already defined error from main function. + +Origin: upstream, 40, commit:33bc7b8bb5a4d2dbeaa8d3298b66bc8c75fc8adb +--- + gnome-session/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gnome-session/main.c b/gnome-session/main.c +index 84edfbe..53f174e 100644 +--- a/gnome-session/main.c ++++ b/gnome-session/main.c +@@ -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 */ + |