blob: de603d60d53ba33e18666a1add08d53100f96db0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|