aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/011_nxcomp_sa-restorer.patch
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2011-12-31 17:04:48 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2011-12-31 17:04:48 +0100
commit448872e70311825ed1b19ff47bf06d7732968b98 (patch)
treeb20fdb27fff91b9d000d4e76de321182afe28ae9 /debian/patches/011_nxcomp_sa-restorer.patch
parent82e5023ed4d48e179b0f999162e0294dd92f8478 (diff)
downloadnx-libs-448872e70311825ed1b19ff47bf06d7732968b98.tar.gz
nx-libs-448872e70311825ed1b19ff47bf06d7732968b98.tar.bz2
nx-libs-448872e70311825ed1b19ff47bf06d7732968b98.zip
Add patch: 011_nxcomp_sa-restorer.patch.
Diffstat (limited to 'debian/patches/011_nxcomp_sa-restorer.patch')
-rw-r--r--debian/patches/011_nxcomp_sa-restorer.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/011_nxcomp_sa-restorer.patch b/debian/patches/011_nxcomp_sa-restorer.patch
new file mode 100644
index 000000000..de603d60d
--- /dev/null
+++ b/debian/patches/011_nxcomp_sa-restorer.patch
@@ -0,0 +1,25 @@
+Description: sa_restorer vs. memset
+ Use memset instead of setting .sa_restorer to NULL.
+Forwarded: not-yet
+Author: Stéphane Graber <stgraber@ubuntu.com>
+Last-Update: 2011-12-31
+--- a/Loop.cpp
++++ b/Loop.cpp
+@@ -5895,7 +5895,7 @@ void InstallSignal(int signal, int action)
+
+ #if defined(__linux__)
+
+- newAction.sa_restorer = NULL;
++ memset(&newAction, NULL, sizeof(newAction));
+
+ #endif
+
+@@ -6513,7 +6513,7 @@ void SetTimer(int value)
+
+ #if defined(__linux__)
+
+- action.sa_restorer = NULL;
++ memset(&action, NULL, sizeof(action));
+
+ #endif
+