blob: afaa29fcee5211b823db8abb36f400be5d535a55 (
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/nxcomp/Loop.cpp
+++ b/nxcomp/Loop.cpp
@@ -5895,7 +5895,7 @@
#if defined(__linux__)
- newAction.sa_restorer = NULL;
+ memset(&newAction, NULL, sizeof(newAction));
#endif
@@ -6513,7 +6513,7 @@
#if defined(__linux__)
- action.sa_restorer = NULL;
+ memset(&action, NULL, sizeof(action));
#endif
|