[mate-notification-daemon] 02/03: debian/patches: Add 0001_segfaults-in-notify-stack-set-location.patch. Prevent from sometimes segfaulting in notify_stack_set_location. (Closes: #778835).
Mike Gabriel
sunweaver at debian.org
Fri Mar 6 05:17:12 UTC 2015
This is an automated email from the git hooks/post-receive script.
sunweaver pushed a commit to branch master
in repository mate-notification-daemon.
commit 09acc8d59a82fba579cf8e00bebdcb6cd7c54a6e
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Fri Mar 6 06:11:20 2015 +0100
debian/patches: Add 0001_segfaults-in-notify-stack-set-location.patch. Prevent from sometimes segfaulting in notify_stack_set_location. (Closes: #778835).
---
...01_segfaults-in-notify-stack-set-location.patch | 32 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 33 insertions(+)
diff --git a/debian/patches/0001_segfaults-in-notify-stack-set-location.patch b/debian/patches/0001_segfaults-in-notify-stack-set-location.patch
new file mode 100644
index 0000000..987e6b3
--- /dev/null
+++ b/debian/patches/0001_segfaults-in-notify-stack-set-location.patch
@@ -0,0 +1,32 @@
+From 688b62fb3fa84d6446a74c13c93ddd33d87f5fe3 Mon Sep 17 00:00:00 2001
+From: monsta <monsta at inbox.ru>
+Date: Thu, 19 Feb 2015 14:11:39 +0300
+Subject: [PATCH] daemon: fixed logic in a couple of places
+
+---
+ src/daemon/daemon.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
+index 49368f2..239bd02 100644
+--- a/src/daemon/daemon.c
++++ b/src/daemon/daemon.c
+@@ -342,7 +342,7 @@ static void on_popup_location_changed(GSettings *settings, gchar *key, NotifyDae
+ {
+ int j;
+
+- for (j = 0; j < daemon->priv->n_screens; j++)
++ for (j = 0; j < daemon->priv->screens[i]->n_stacks; j++)
+ {
+ NotifyStack* stack;
+ stack = daemon->priv->screens[i]->stacks[j];
+@@ -399,7 +399,7 @@ static void destroy_screens(NotifyDaemon* daemon)
+ gdkwindow = gdk_screen_get_root_window(screen);
+ gdk_window_remove_filter(gdkwindow, (GdkFilterFunc) screen_xevent_filter, daemon->priv->screens[i]);
+
+- for (j = 0; i < daemon->priv->screens[i]->n_stacks; j++)
++ for (j = 0; j < daemon->priv->screens[i]->n_stacks; j++)
+ {
+ notify_stack_destroy(daemon->priv->screens[i]->stacks[j]);
+ daemon->priv->screens[i]->stacks[j] = NULL;
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b8323c9
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001_segfaults-in-notify-stack-set-location.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-notification-daemon.git
More information about the pkg-mate-commits
mailing list