From 448872e70311825ed1b19ff47bf06d7732968b98 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sat, 31 Dec 2011 17:04:48 +0100 Subject: Add patch: 011_nxcomp_sa-restorer.patch. --- debian/patches/011_nxcomp_sa-restorer.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 debian/patches/011_nxcomp_sa-restorer.patch (limited to 'debian/patches/011_nxcomp_sa-restorer.patch') 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 +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 + -- cgit v1.2.3