diff options
author | Guillem Jover <guillem@debian.org> | 2015-09-17 02:03:32 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2015-09-17 04:50:20 +0200 |
commit | 9a75ba2a93f349bc74fd80068bc4abc5a44f728b (patch) | |
tree | d318112ca184298e887aa3b10f849b9c35909b82 /dselect/baselist.cc | |
parent | 21e982448e8dda1ac6c534303a8ba4f54b46127e (diff) | |
download | dpkg-9a75ba2a93f349bc74fd80068bc4abc5a44f728b.tar.gz |
dselect: Move sigwinch baselist member variables into setupsigwinch()
Diffstat (limited to 'dselect/baselist.cc')
-rw-r--r-- | dselect/baselist.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dselect/baselist.cc b/dselect/baselist.cc index 6c1aad9c6..ffde95ea0 100644 --- a/dselect/baselist.cc +++ b/dselect/baselist.cc @@ -95,8 +95,8 @@ baselist::sigwinch_mask(int how) void baselist::setupsigwinch() { - osigactp= new(struct sigaction); - oblockedp= new(sigset_t); + struct sigaction *osigactp = new(struct sigaction); + sigset_t *oblockedp = new(sigset_t); if (sigprocmask(0, nullptr, oblockedp)) ohshite(_("failed to get old signal mask")); if (sigaction(SIGWINCH, nullptr, osigactp)) @@ -106,6 +106,7 @@ baselist::setupsigwinch() sigwinch_mask(SIG_BLOCK); + struct sigaction nsigact; memset(&nsigact,0,sizeof(nsigact)); nsigact.sa_handler= sigwinchhandler; sigemptyset(&nsigact.sa_mask); |